diff options
Diffstat (limited to 'kmymoney2/reports')
-rw-r--r-- | kmymoney2/reports/objectinfotable.cpp | 2 | ||||
-rw-r--r-- | kmymoney2/reports/pivottable.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/kmymoney2/reports/objectinfotable.cpp b/kmymoney2/reports/objectinfotable.cpp index 5f93729..75ed019 100644 --- a/kmymoney2/reports/objectinfotable.cpp +++ b/kmymoney2/reports/objectinfotable.cpp @@ -361,7 +361,7 @@ MyMoneyMoney ObjectInfoTable::investmentBalance(const MyMoneyAccount& acc) val = val.convert(acc.fraction()); value += val; } catch(MyMoneyException* e) { - tqWarning("%s", (TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())).data()); + tqWarning(TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())); delete e; } } diff --git a/kmymoney2/reports/pivottable.cpp b/kmymoney2/reports/pivottable.cpp index a85b44f..6035d20 100644 --- a/kmymoney2/reports/pivottable.cpp +++ b/kmymoney2/reports/pivottable.cpp @@ -76,7 +76,7 @@ Debug::Debug( const TQString& _name ): m_methodName( _name ), m_enabled( m_sEnab if (m_enabled) { - tqDebug( "%s%s(): ENTER", m_sTabs.latin1(), m_methodName.latin1() ); + tqDebug(TQString("%1%2(): ENTER").arg(m_sTabs).arg(m_methodName)); m_sTabs.append("--"); } } @@ -86,7 +86,7 @@ Debug::~Debug() if ( m_enabled ) { m_sTabs.remove(0,2); - tqDebug( "%s%s(): EXIT", m_sTabs.latin1(), m_methodName.latin1() ); + tqDebug(TQString("%1%2(): EXIT").arg(m_sTabs).arg(m_methodName)); if (m_methodName == m_sEnableKey) m_enabled = false; @@ -96,7 +96,7 @@ Debug::~Debug() void Debug::output( const TQString& _text ) { if ( m_enabled ) - tqDebug( "%s%s(): %s", m_sTabs.latin1(), m_methodName.latin1(), _text.latin1() ); + tqDebug(TQString("%1%2(): %3").arg(m_sTabs).arg(m_methodName).arg(_text)); } PivotTable::PivotTable( const MyMoneyReport& _config_f ): @@ -194,7 +194,7 @@ void PivotTable::init(void) try { transactions = file->transactionList(m_config_f); } catch(MyMoneyException *e) { - tqDebug("ERR: %s thrown in %s(%ld)", e->what().data(), e->file().data(), e->line()); + tqDebug(TQString("ERR: %1 thrown in %2(%s)").arg(e->what()).arg(e->file()).arg(e->line())); throw e; } DEBUG_OUTPUT(TQString("Found %1 matching transactions").arg(transactions.count())); |