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/mymoneyqifprofile.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/mymoneyqifprofile.cpp')
-rw-r--r-- | kmymoney2/converter/mymoneyqifprofile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/converter/mymoneyqifprofile.cpp b/kmymoney2/converter/mymoneyqifprofile.cpp index a38b687..efee9c7 100644 --- a/kmymoney2/converter/mymoneyqifprofile.cpp +++ b/kmymoney2/converter/mymoneyqifprofile.cpp @@ -477,7 +477,7 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const } } if(j == 13) { - tqWarning("Unknown month '%s'", scannedParts[d->m_partPos['m']].data()); + tqWarning(TQString("Unknown month '%1'").arg(scannedParts[d->m_partPos['m']])); return TQDate(); } } @@ -573,8 +573,8 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const for(i = 0; i < 2; ++i) { if(scannedDelim[i] != formatDelim[i] && scannedDelim[i] != TQChar('\'')) { - tqWarning("MyMoneyQifProfile::date(const TQString& datein) Invalid delimiter '%s' when '%s' was expected", - scannedDelim[i].latin1(), formatDelim[i].latin1()); + tqWarning(TQString("MyMoneyQifProfile::date(const TQString& datein) Invalid delimiter '%1' when '%2' was expected"). + arg(scannedDelim[i]).arg(formatDelim[i])); return TQDate(); } } @@ -658,7 +658,7 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const break; } if(!msg.isEmpty()) { - tqWarning("MyMoneyQifProfile::date(const TQString& datein) %s",msg.latin1()); + tqWarning(TQString("MyMoneyQifProfile::date(const TQString& datein) %1").arg(msg)); return TQDate(); } } |