From a553069ad068dcab541282df24dbe12591153af8 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 (cherry picked from commit eeae53f59df4d79d0399c2217a165ff2fab754db) --- kmymoney2/converter/mymoneyqifreader.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kmymoney2/converter/mymoneyqifreader.cpp') diff --git a/kmymoney2/converter/mymoneyqifreader.cpp b/kmymoney2/converter/mymoneyqifreader.cpp index 9f68d85..614788f 100644 --- a/kmymoney2/converter/mymoneyqifreader.cpp +++ b/kmymoney2/converter/mymoneyqifreader.cpp @@ -336,7 +336,7 @@ void MyMoneyQifReader::slotImportFinished(void) if(!m_lineBuffer.isEmpty()) { m_qifLines << TQString::fromUtf8(m_lineBuffer.stripWhiteSpace()); } - tqDebug("Read %d bytes", m_pos); + tqDebug("Read %ld bytes", m_pos); TQTimer::singleShot(0, this, TQT_SLOT(slotProcessData())); } @@ -365,13 +365,13 @@ void MyMoneyQifReader::slotProcessData(void) m_qifProfile.setInputDateFormat(list.first()); - tqDebug("Selected date format: '%s'", list.first().data()); + tqDebug(TQString("Selected date format: '%1'").arg(list.first())); signalProgress(0, m_qifLines.count(), i18n("Importing QIF ...")); TQStringList::iterator it; for(it = m_qifLines.begin(); m_userAbort == false && it != m_qifLines.end(); ++it) { ++m_linenumber; - // tqDebug("Proc: '%s'", (*it).data()); + // tqDebug(TQString("Proc: '%1'").arg(*it)); if((*it).startsWith("!")) { processQifSpecial(*it); m_qifEntry.clear(); @@ -621,7 +621,7 @@ void MyMoneyQifReader::processQifSpecial(const TQString& _line) m_entryType = EntrySkip; } else { - tqWarning("Unknown export header '!Type:%s' in QIF file on line %d: Skipping section.", line.data(), m_linenumber); + tqWarning(TQString("Unknown export header '!Type:%1' in QIF file on line %2: Skipping section.").arg(line).arg(m_linenumber)); m_entryType = EntrySkip; } @@ -1017,7 +1017,7 @@ void MyMoneyQifReader::processTransactionEntry(void) h = MyMoneyTransaction::hash(m_qifEntry.join(";")); TQString hashBase; - hashBase.sprintf("%s-%07lx", m_qifProfile.date(extractLine('D')).toString(Qt::ISODate).data(), h); + hashBase.sprintf("%s-%07lx", m_qifProfile.date(extractLine('D')).toString(Qt::ISODate).latin1(), h); int idx = 1; TQString hash; for(;;) { @@ -1172,7 +1172,7 @@ void MyMoneyQifReader::processTransactionEntry(void) } } catch (MyMoneyException *e) { - kdDebug(0) << "Line " << m_linenumber << ": Account with id " << accountId.data() << " not found" << endl; + kdDebug(0) << "Line " << m_linenumber << ": Account with id " << accountId << " not found" << endl; accountId = TQString(); delete e; } @@ -1231,7 +1231,7 @@ void MyMoneyQifReader::processTransactionEntry(void) } } catch (MyMoneyException *e) { - kdDebug(0) << "Line " << m_linenumber << ": Account with id " << accountId.data() << " not found" << endl; + kdDebug(0) << "Line " << m_linenumber << ": Account with id " << accountId << " not found" << endl; accountId = TQString(); delete e; } @@ -1327,7 +1327,7 @@ void MyMoneyQifReader::processInvestmentTransactionEntry(void) h = MyMoneyTransaction::hash(m_qifEntry.join(";")); TQString hashBase; - hashBase.sprintf("%s-%07lx", m_qifProfile.date(extractLine('D')).toString(Qt::ISODate).data(), h); + hashBase.sprintf("%s-%07lx", m_qifProfile.date(extractLine('D')).toString(Qt::ISODate).latin1(), h); int idx = 1; TQString hash; for(;;) { @@ -1994,7 +1994,7 @@ TQString MyMoneyQifReader::processAccountEntry(bool resetAccountId) TQString tmp; account.setName(extractLine('N')); - // tqDebug("Process account '%s'", account.name().data()); + // tqDebug(TQString("Process account '%1'").arg(account.name())); account.setDescription(extractLine('D')); -- cgit v1.2.1