diff options
author | Slávek Banko <[email protected]> | 2022-03-17 18:50:52 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2022-03-20 18:50:39 +0100 |
commit | 49e34b02b0bb609ce6e9ff1d2d96bdfcb03617d1 (patch) | |
tree | f8299219a274dedc710b0bbf0ff1be832d47f197 /kmymoney2/mymoney/mymoneyutils.cpp | |
parent | a553069ad068dcab541282df24dbe12591153af8 (diff) | |
download | kmymoney-49e34b02b0bb609ce6e9ff1d2d96bdfcb03617d1.tar.gz kmymoney-49e34b02b0bb609ce6e9ff1d2d96bdfcb03617d1.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 <[email protected]>
(cherry picked from commit 5e6c401557744fe5f9765471605cc793939fee1f)
Diffstat (limited to 'kmymoney2/mymoney/mymoneyutils.cpp')
-rw-r--r-- | kmymoney2/mymoney/mymoneyutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kmymoney2/mymoney/mymoneyutils.cpp b/kmymoney2/mymoney/mymoneyutils.cpp index 49d5cac..93700af 100644 --- a/kmymoney2/mymoney/mymoneyutils.cpp +++ b/kmymoney2/mymoney/mymoneyutils.cpp @@ -337,7 +337,7 @@ unsigned long extractId(const TQString& txt) pos = txt.find(TQRegExp("\\d+"), 0); if(pos != -1) { - rc = atol(txt.mid(pos)); + rc = txt.mid(pos).toLong(); } return rc; } |