diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:38:41 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:38:41 -0600 |
commit | f0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch) | |
tree | 1fc538e179833e62caec21956bfe47a252be5a72 /kexi/kexidb/expression.cpp | |
parent | 11191ef0b9908604d1d7aaca382b011ef22c454c (diff) | |
download | koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'kexi/kexidb/expression.cpp')
-rw-r--r-- | kexi/kexidb/expression.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kexi/kexidb/expression.cpp b/kexi/kexidb/expression.cpp index 034154bf..d9a33b4c 100644 --- a/kexi/kexidb/expression.cpp +++ b/kexi/kexidb/expression.cpp @@ -82,7 +82,7 @@ Field::Type BaseExpr::type() TQString BaseExpr::debugString() { - return TQString("BaseExpr(%1,type=%1)").tqarg(m_token).tqarg(Driver::defaultSQLTypeName(type())); + return TQString("BaseExpr(%1,type=%1)").arg(m_token).arg(Driver::defaultSQLTypeName(type())); } bool BaseExpr::validate(ParseInfo& /*parseInfo*/) @@ -241,7 +241,7 @@ TQString UnaryExpr::debugString() return "UnaryExpr('" + tokenToDebugString() + "', " + (m_arg ? m_arg->debugString() : TQString("<NONE>")) - + TQString(",type=%1)").tqarg(Driver::defaultSQLTypeName(type())); + + TQString(",type=%1)").arg(Driver::defaultSQLTypeName(type())); } TQString UnaryExpr::toString(QuerySchemaParameterValueListIterator* params) @@ -256,7 +256,7 @@ TQString UnaryExpr::toString(QuerySchemaParameterValueListIterator* params) return (m_arg ? m_arg->toString(params) : "<NULL>") + " IS NULL"; if (m_token==SQL_IS_NOT_NULL) return (m_arg ? m_arg->toString(params) : "<NULL>") + " IS NOT NULL"; - return TQString("{INVALID_OPERATOR#%1} ").tqarg(m_token) + (m_arg ? m_arg->toString(params) : "<NULL>"); + return TQString("{INVALID_OPERATOR#%1} ").arg(m_token) + (m_arg ? m_arg->toString(params) : "<NULL>"); } void UnaryExpr::getQueryParameters(QuerySchemaParameterList& params) @@ -419,7 +419,7 @@ TQString BinaryExpr::debugString() + "," + (m_larg ? m_larg->debugString() : TQString("<NONE>")) + ",'" + tokenToDebugString() + "'," + (m_rarg ? m_rarg->debugString() : TQString("<NONE>")) - + TQString(",type=%1)").tqarg(Driver::defaultSQLTypeName(type())); + + TQString(",type=%1)").arg(Driver::defaultSQLTypeName(type())); } TQString BinaryExpr::tokenToString() @@ -449,7 +449,7 @@ TQString BinaryExpr::tokenToString() /* not handled here */ default:; } - return TQString("{INVALID_BINARY_OPERATOR#%1} ").tqarg(m_token); + return TQString("{INVALID_BINARY_OPERATOR#%1} ").arg(m_token); } TQString BinaryExpr::toString(QuerySchemaParameterValueListIterator* params) @@ -529,7 +529,7 @@ Field::Type ConstExpr::type() TQString ConstExpr::debugString() { return TQString("ConstExpr('") + tokenToDebugString() +"'," + toString() - + TQString(",type=%1)").tqarg(Driver::defaultSQLTypeName(type())); + + TQString(",type=%1)").arg(Driver::defaultSQLTypeName(type())); } TQString ConstExpr::toString(QuerySchemaParameterValueListIterator* params) @@ -601,13 +601,13 @@ void QueryParameterExpr::setType(Field::Type type) TQString QueryParameterExpr::debugString() { - return TQString("QueryParameterExpr('") + TQString::fromLatin1("[%2]").tqarg(value.toString()) - + TQString("',type=%1)").tqarg(Driver::defaultSQLTypeName(type())); + return TQString("QueryParameterExpr('") + TQString::fromLatin1("[%2]").arg(value.toString()) + + TQString("',type=%1)").arg(Driver::defaultSQLTypeName(type())); } TQString QueryParameterExpr::toString(QuerySchemaParameterValueListIterator* params) { - return params ? params->getPreviousValueAsString(type()) : TQString::fromLatin1("[%2]").tqarg(value.toString()); + return params ? params->getPreviousValueAsString(type()) : TQString::fromLatin1("[%2]").arg(value.toString()); } void QueryParameterExpr::getQueryParameters(QuerySchemaParameterList& params) @@ -656,7 +656,7 @@ VariableExpr* VariableExpr::copy() const TQString VariableExpr::debugString() { return TQString("VariableExpr(") + name - + TQString(",type=%1)").tqarg(field ? Driver::defaultSQLTypeName(type()) : TQString("FIELD NOT DEFINED YET")); + + TQString(",type=%1)").arg(field ? Driver::defaultSQLTypeName(type()) : TQString("FIELD NOT DEFINED YET")); } TQString VariableExpr::toString(QuerySchemaParameterValueListIterator* params) @@ -719,15 +719,15 @@ bool VariableExpr::validate(ParseInfo& parseInfo) parseInfo.errMsg = i18n("Ambiguous field name"); parseInfo.errDescr = i18n("Both table \"%1\" and \"%2\" have defined \"%3\" field. " "Use \"<tableName>.%4\" notation to specify table name.") - .tqarg(firstField->table()->name()).tqarg(f->table()->name()) - .tqarg(fieldName).tqarg(fieldName); + .arg(firstField->table()->name()).arg(f->table()->name()) + .arg(fieldName).arg(fieldName); return false; } } } if (!firstField) { parseInfo.errMsg = i18n("Field not found"); - parseInfo.errDescr = i18n("Table containing \"%1\" field not found").tqarg(fieldName); + parseInfo.errDescr = i18n("Table containing \"%1\" field not found").arg(fieldName); return false; } //ok @@ -754,8 +754,8 @@ bool VariableExpr::validate(ParseInfo& parseInfo) if (covered) { parseInfo.errMsg = i18n("Could not access the table directly using its name"); parseInfo.errDescr = i18n("Table \"%1\" is covered by aliases. Instead of \"%2\", " - "you can write \"%3\"").tqarg(tableName) - .tqarg(TQString(tableName+"."+fieldName)).tqarg(TQString(tableAlias+"."+fieldName.latin1())); + "you can write \"%3\"").arg(tableName) + .arg(TQString(tableName+"."+fieldName)).arg(TQString(tableAlias+"."+fieldName.latin1())); return false; } } @@ -773,7 +773,7 @@ bool VariableExpr::validate(ParseInfo& parseInfo) if (!ts) { parseInfo.errMsg = i18n("Table not found"); - parseInfo.errDescr = i18n("Unknown table \"%1\"").tqarg(tableName); + parseInfo.errDescr = i18n("Unknown table \"%1\"").arg(tableName); return false; } @@ -786,8 +786,8 @@ bool VariableExpr::validate(ParseInfo& parseInfo) //it's a table.* if (fieldName=="*") { if (positionsList->count()>1) { - parseInfo.errMsg = i18n("Ambiguous \"%1.*\" expression").tqarg(tableName); - parseInfo.errDescr = i18n("More than one \"%1\" table or alias defined").tqarg(tableName); + parseInfo.errMsg = i18n("Ambiguous \"%1.*\" expression").arg(tableName); + parseInfo.errDescr = i18n("More than one \"%1\" table or alias defined").arg(tableName); return false; } tableForQueryAsterisk = ts; @@ -800,7 +800,7 @@ bool VariableExpr::validate(ParseInfo& parseInfo) if (!realField) { parseInfo.errMsg = i18n("Field not found"); parseInfo.errDescr = i18n("Table \"%1\" has no \"%2\" field") - .tqarg(tableName).tqarg(fieldName); + .arg(tableName).arg(fieldName); return false; } @@ -815,9 +815,9 @@ bool VariableExpr::validate(ParseInfo& parseInfo) numberOfTheSameFields++; if (numberOfTheSameFields>1) { parseInfo.errMsg = i18n("Ambiguous \"%1.%2\" expression") - .tqarg(tableName).tqarg(fieldName); + .arg(tableName).arg(fieldName); parseInfo.errDescr = i18n("More than one \"%1\" table or alias defined containing \"%2\" field") - .tqarg(tableName).tqarg(fieldName); + .arg(tableName).arg(fieldName); return false; } } @@ -880,7 +880,7 @@ TQString FunctionExpr::debugString() res.append( TQString("FunctionExpr(") + name ); if (args) res.append(TQString(",") + args->debugString()); - res.append(TQString(",type=%1)").tqarg(Driver::defaultSQLTypeName(type()))); + res.append(TQString(",type=%1)").arg(Driver::defaultSQLTypeName(type()))); return res; } |