diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-16 11:38:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-16 15:26:12 +0200 |
commit | 89ca0ed3bc773b2fa65c74a4d3cfbdd3515bc641 (patch) | |
tree | 77355c99c9f69a17bd09ce23f4ec15db836fc201 /vcl | |
parent | dcadca1bd54b3450a2c408d4629b53ca8b19efc3 (diff) |
loplugin:singlevalfields
Change-Id: Ia5d4de61ecf77477e86032b86d67d6ffd011913e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100819
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/longcurr.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx index b4368c3e10a6..920fb48fe04c 100644 --- a/vcl/source/control/longcurr.cxx +++ b/vcl/source/control/longcurr.cxx @@ -263,7 +263,7 @@ bool ImplLongCurrencyReformat( const OUString& rStr, BigInt const & nMin, BigInt else if ( nTempVal < nMin ) nTempVal = nMin; - rOutStr = ImplGetCurr( rLocaleDataWrapper, nTempVal, nDecDigits, rFormatter.GetCurrencySymbol(), rFormatter.IsUseThousandSep() ); + rOutStr = ImplGetCurr( rLocaleDataWrapper, nTempVal, nDecDigits, rFormatter.GetCurrencySymbol(), /*IsUseThousandSep*/true ); return true; } } @@ -275,7 +275,6 @@ void LongCurrencyFormatter::ImpInit() mnMax = 0x7FFFFFFF; mnMax *= 0x7FFFFFFF; mnDecimalDigits = 0; - mbThousandSep = true; SetDecimalDigits( 0 ); } @@ -311,7 +310,7 @@ void LongCurrencyFormatter::SetUserValue( BigInt nNewValue ) if ( !GetField() ) return; - OUString aStr = ImplGetCurr( GetLocaleDataWrapper(), nNewValue, GetDecimalDigits(), GetCurrencySymbol(), IsUseThousandSep() ); + OUString aStr = ImplGetCurr( GetLocaleDataWrapper(), nNewValue, GetDecimalDigits(), GetCurrencySymbol(), /*UseThousandSep*/true ); if ( GetField()->HasFocus() ) { Selection aSelection = GetField()->GetSelection(); |