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/converter/mymoneystatementreader.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kmymoney2/converter/mymoneystatementreader.cpp') diff --git a/kmymoney2/converter/mymoneystatementreader.cpp b/kmymoney2/converter/mymoneystatementreader.cpp index 6b36888..15f29f8 100644 --- a/kmymoney2/converter/mymoneystatementreader.cpp +++ b/kmymoney2/converter/mymoneystatementreader.cpp @@ -237,7 +237,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes try { m_account = MyMoneyFile::instance()->account(s.m_accountId); } catch(MyMoneyException* e) { - tqDebug("Received reference '%s' to unknown account in statement", s.m_accountId.data()); + tqDebug(TQString("Received reference '%1' to unknown account in statement").arg(s.m_accountId)); delete e; } } @@ -299,7 +299,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes else if(s.m_listTransactions.count() == 0) messages += i18n("Importing statement without transactions"); - tqDebug("Importing statement for '%s'", m_account.name().data()); + tqDebug(TQString("Importing statement for '%1'").arg(m_account.name())); // // Process the securities @@ -322,7 +322,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes if ( !m_userAbort ) { try { - tqDebug("Processing transactions (%s)", m_account.name().data()); + tqDebug(TQString("Processing transactions (%1)").arg(m_account.name())); signalProgress(0, s.m_listTransactions.count(), "Importing Statement ..."); int progress = 0; TQValueList::const_iterator it_t = s.m_listTransactions.begin(); @@ -332,13 +332,13 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes signalProgress(++progress, 0); ++it_t; } - tqDebug("Processing transactions done (%s)", m_account.name().data()); + tqDebug(TQString("Processing transactions done (%1)").arg(m_account.name())); } catch(MyMoneyException* e) { if(e->what() == "USERABORT") m_userAbort = true; else - tqDebug("Caught exception from processTransactionEntry() not caused by USERABORT: %s", e->what().data()); + tqDebug(TQString("Caught exception from processTransactionEntry() not caused by USERABORT: %1").arg(e->what())); delete e; } signalProgress(-1, -1); @@ -369,7 +369,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes if(e->what() == "USERABORT") m_userAbort = true; else - tqDebug("Caught exception from processPriceEntry() not caused by USERABORT: %s", e->what().data()); + tqDebug(TQString("Caught exception from processPriceEntry() not caused by USERABORT: %1").arg(e->what())); delete e; } signalProgress(-1, -1); @@ -423,7 +423,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes delete m_ft; m_ft = 0; - tqDebug("Importing statement for '%s' done", m_account.name().data()); + tqDebug(TQString("Importing statement for '%1' done").arg(m_account.name())); return rc; } @@ -505,7 +505,7 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra #if 0 TQString dbgMsg; dbgMsg = TQString("Process %1, '%3', %2").arg(t_in.m_datePosted.toString(Qt::ISODate)).arg(t_in.m_amount.formatMoney("", 2)).arg(t_in.m_strBankID); - tqDebug("%s", dbgMsg.data()); + tqDebug(dbgMsg); #endif // mark it imported for the view @@ -962,7 +962,7 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra try { file->addPayee(payee); - tqDebug("Payee '%s' created", payee.name().data()); + tqDebug(TQString("Payee '%1' created").arg(payee.name())); d->payees << payee; payeeid = payee.id(); s1.setPayeeId(payeeid); @@ -1161,7 +1161,7 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra break; case TransactionMatcher::matched: case TransactionMatcher::matchedExact: - tqDebug("Detected as match to transaction '%s'", tm.id().data()); + tqDebug(TQString("Detected as match to transaction '%1'").arg(tm.id())); matcher.match(tm, matchedSplit, t, s1, true); d->transactionsMatched++; break; @@ -1230,7 +1230,7 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra delete o; } catch (MyMoneyException *e) { TQString message(i18n("Problem adding or matching imported transaction with id '%1': %2").arg(t_in.m_strBankID).arg(e->what())); - tqDebug("%s", message.data()); + tqDebug(message); delete e; int result = KMessageBox::warningContinueCancel(0, message); -- cgit v1.2.1