diff options
author | Slávek Banko <[email protected]> | 2022-03-17 09:54:21 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2022-03-18 12:45:32 +0100 |
commit | eeae53f59df4d79d0399c2217a165ff2fab754db (patch) | |
tree | 768c8b3c67ed80698dcb4e66285ad673e9d3fb0f /kmymoney2/converter/mymoneyqifreader.cpp | |
parent | a6454b1658d325d6ff2d6ba6c349b772148798e0 (diff) | |
download | kmymoney-eeae53f59df4d79d0399c2217a165ff2fab754db.tar.gz kmymoney-eeae53f59df4d79d0399c2217a165ff2fab754db.zip |
Replace the use of the old API TQString::data().
The definition of -UTQT_NO_COMPAT is no longer needed.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kmymoney2/converter/mymoneyqifreader.cpp')
-rw-r--r-- | kmymoney2/converter/mymoneyqifreader.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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')); |