summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneyfile.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-03-17 18:50:52 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-03-18 12:45:32 +0100
commit5e6c401557744fe5f9765471605cc793939fee1f (patch)
treefa1c9abe564d03a362378f8a7a6304e27baf9c33 /kmymoney2/mymoney/mymoneyfile.cpp
parenteeae53f59df4d79d0399c2217a165ff2fab754db (diff)
downloadkmymoney-5e6c401557744fe5f9765471605cc793939fee1f.tar.gz
kmymoney-5e6c401557744fe5f9765471605cc793939fee1f.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kmymoney2/mymoney/mymoneyfile.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneyfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmymoney2/mymoney/mymoneyfile.cpp b/kmymoney2/mymoney/mymoneyfile.cpp
index 95676cd..8ac6bf9 100644
--- a/kmymoney2/mymoney/mymoneyfile.cpp
+++ b/kmymoney2/mymoney/mymoneyfile.cpp
@@ -759,7 +759,7 @@ const MyMoneyAccount MyMoneyFile::openingBalanceAccount_internal(const MyMoneySe
throw new MYMONEYEXCEPTION("Opening balance for non currencies not supported");
MyMoneyAccount acc;
- TQRegExp match(TQString("^%1").arg(i18n(MyMoneyFile::OpeningBalancesPrefix)));
+ TQRegExp match(TQString("^%1").arg(i18n(MyMoneyFile::OpeningBalancesPrefix.utf8())));
TQValueList<MyMoneyAccount> accounts;
TQValueList<MyMoneyAccount>::Iterator it;
@@ -787,7 +787,7 @@ const MyMoneyAccount MyMoneyFile::createOpeningBalanceAccount(const MyMoneySecur
checkTransaction(__PRETTY_FUNCTION__);
MyMoneyAccount acc;
- TQString name(i18n(MyMoneyFile::OpeningBalancesPrefix));
+ TQString name(i18n(MyMoneyFile::OpeningBalancesPrefix.utf8()));
if(security.id() != baseCurrency().id()) {
name += TQString(" (%1)").arg(security.id());
}