summaryrefslogtreecommitdiffstats
path: root/kmymoney2/reports/pivottable.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-03-17 09:54:21 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-03-18 12:45:32 +0100
commiteeae53f59df4d79d0399c2217a165ff2fab754db (patch)
tree768c8b3c67ed80698dcb4e66285ad673e9d3fb0f /kmymoney2/reports/pivottable.cpp
parenta6454b1658d325d6ff2d6ba6c349b772148798e0 (diff)
downloadkmymoney-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 <slavek.banko@axis.cz>
Diffstat (limited to 'kmymoney2/reports/pivottable.cpp')
-rw-r--r--kmymoney2/reports/pivottable.cpp8
1 files changed, 4 insertions, 4 deletions
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()));