From eeae53f59df4d79d0399c2217a165ff2fab754db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 17 Mar 2022 09:54:21 +0100 Subject: Replace the use of the old API TQString::data(). The definition of -UTQT_NO_COMPAT is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kmymoney2/reports/objectinfotable.cpp | 2 +- kmymoney2/reports/pivottable.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'kmymoney2/reports') 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())); -- cgit v1.2.1