diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-20 11:02:08 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-12-20 20:29:51 +0100 |
commit | c684aa9cf33fdbae5bf5f05d2c391f27a140b56d (patch) | |
tree | f536217616ca2b1b709b734639b4601ff9fedc94 /vcl/source/control | |
parent | c905505348d8b44f54f1f51a2f33aca878fe6375 (diff) |
Simplify and rename for clarity
Change-Id: Ic97a2b313c6f7d9da540a8867f01362c2fe7b0d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161052
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/longcurr.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx index 1d942d1e5608..ee9451d79655 100644 --- a/vcl/source/control/longcurr.cxx +++ b/vcl/source/control/longcurr.cxx @@ -56,11 +56,9 @@ OUString ImplGetCurr( const LocaleDataWrapper& rLocaleDataWrapper, const BigInt return rLocaleDataWrapper.getCurr( static_cast<tools::Long>(rNumber), nDigits, rCurrSymbol, bShowThousandSep ); BigInt aTmp( ImplPower10( nDigits ) ); - BigInt aInteger( rNumber ); - aInteger.Abs(); + BigInt aInteger(rNumber.Abs()); + BigInt aFraction(aInteger); aInteger /= aTmp; - BigInt aFraction( rNumber ); - aFraction.Abs(); aFraction %= aTmp; if ( !aInteger.IsZero() ) { |