summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneyfile.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-20 18:50:15 +0100
commita553069ad068dcab541282df24dbe12591153af8 (patch)
tree6e0b3fc71e22d976fe434da0deab1a1fe0117476 /kmymoney2/mymoney/mymoneyfile.cpp
parentfebacdee5bf580932e1937f656b475762b48acd6 (diff)
downloadkmymoney-a553069ad068dcab541282df24dbe12591153af8.tar.gz
kmymoney-a553069ad068dcab541282df24dbe12591153af8.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> (cherry picked from commit eeae53f59df4d79d0399c2217a165ff2fab754db)
Diffstat (limited to 'kmymoney2/mymoney/mymoneyfile.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneyfile.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/mymoney/mymoneyfile.cpp b/kmymoney2/mymoney/mymoneyfile.cpp
index 8091e91..95676cd 100644
--- a/kmymoney2/mymoney/mymoneyfile.cpp
+++ b/kmymoney2/mymoney/mymoneyfile.cpp
@@ -741,7 +741,7 @@ const MyMoneyAccount MyMoneyFile::openingBalanceAccount(const MyMoneySecurity& s
ft.commit();
} catch(MyMoneyException* e) {
- tqDebug("Unable to create opening balance account for security %s", security.id().data());
+ tqDebug(TQString("Unable to create opening balance account for security %1").arg(security.id()));
delete e;
}
return acc;
@@ -1101,10 +1101,10 @@ void MyMoneyFile::warningMissingRate(const TQString& fromId, const TQString& toI
try {
from = security(fromId);
to = security(toId);
- tqWarning("Missing price info for conversion from %s to %s", from.name().latin1(), to.name().latin1());
+ tqWarning(TQString("Missing price info for conversion from %1 to %2").arg(from.name()).arg(to.name()));
} catch(MyMoneyException *e) {
- tqFatal("Missing security caught in MyMoneyFile::warningMissingRate(): %s(%ld) %s", e->file().data(), e->line(), e->what().data());
+ tqFatal(TQString("Missing security caught in MyMoneyFile::warningMissingRate(): %1(%2) %3").arg(e->file()).arg(e->line()).arg(e->what()));
delete e;
}
}
@@ -1812,11 +1812,11 @@ TQString MyMoneyFile::createCategory(const MyMoneyAccount& base, const TQString&
}
catch (MyMoneyException *e)
{
- tqDebug("Unable to add account %s, %s, %s: %s",
- categoryAccount.name().latin1(),
- parent.name().latin1(),
- categoryText.latin1(),
- e->what().latin1());
+ tqDebug(TQString("Unable to add account %1, %2, %3: %4").
+ arg(categoryAccount.name()).
+ arg(parent.name()).
+ arg(categoryText).
+ arg(e->what()));
delete e;
}