diff options
Diffstat (limited to 'kspread/formula.cc')
-rw-r--r-- | kspread/formula.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kspread/formula.cc b/kspread/formula.cc index 1e42867a..0f70feaf 100644 --- a/kspread/formula.cc +++ b/kspread/formula.cc @@ -1479,10 +1479,10 @@ TQString Formula::dump() const compile( tokens ); } - result = TQString("Expression: [%1]\n").tqarg( d->expression ); + result = TQString("Expression: [%1]\n").arg( d->expression ); #if 0 Value value = eval(); - result.append( TQString("Result: %1\n").tqarg( + result.append( TQString("Result: %1\n").arg( converter->asString(value).asString() ) ); #endif @@ -1491,12 +1491,12 @@ TQString Formula::dump() const { TQString vtext; Value val = d->constants[c]; - if( val.isString() ) vtext = TQString("[%1]").tqarg( val.asString() ); - else if( val.isNumber() ) vtext = TQString("%1").tqarg( val.asFloat() ); - else if( val.isBoolean() ) vtext = TQString("%1").tqarg( val.asBoolean() ? "True":"False"); + if( val.isString() ) vtext = TQString("[%1]").arg( val.asString() ); + else if( val.isNumber() ) vtext = TQString("%1").arg( val.asFloat() ); + else if( val.isBoolean() ) vtext = TQString("%1").arg( val.asBoolean() ? "True":"False"); else if( val.isError() ) vtext = "error"; else vtext = "???"; - result += TQString(" #%1 = %2\n").tqarg(c).tqarg( vtext ); + result += TQString(" #%1 = %2\n").arg(c).arg( vtext ); } result.append("\n"); @@ -1506,9 +1506,9 @@ TQString Formula::dump() const TQString ctext; switch( d->codes[i].type ) { - case Opcode::Load: ctext = TQString("Load #%1").tqarg( d->codes[i].index ); break; - case Opcode::Ref: ctext = TQString("Ref #%1").tqarg( d->codes[i].index ); break; - case Opcode::Function: ctext = TQString("Function (%1)").tqarg( d->codes[i].index ); break; + case Opcode::Load: ctext = TQString("Load #%1").arg( d->codes[i].index ); break; + case Opcode::Ref: ctext = TQString("Ref #%1").arg( d->codes[i].index ); break; + case Opcode::Function: ctext = TQString("Function (%1)").arg( d->codes[i].index ); break; case Opcode::Add: ctext = "Add"; break; case Opcode::Sub: ctext = "Sub"; break; case Opcode::Mul: ctext = "Mul"; break; |