diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-04 09:28:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-04 13:07:40 +0000 |
commit | 32f95a35514701ed16413125b440c16d90f52b4a (patch) | |
tree | 25ac5edca15ee02bc937ee47116c2197559da4cd /vcl/source/control/longcurr.cxx | |
parent | 0f98299f7aa44bbb55c1bfeddca7799f727d14b0 (diff) |
V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
Diffstat (limited to 'vcl/source/control/longcurr.cxx')
-rw-r--r-- | vcl/source/control/longcurr.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx index 027fb39f0c41..5f081bed20de 100644 --- a/vcl/source/control/longcurr.cxx +++ b/vcl/source/control/longcurr.cxx @@ -330,9 +330,9 @@ OUString LongCurrencyFormatter::GetCurrencySymbol() const return !maCurrencySymbol.isEmpty() ? maCurrencySymbol : GetLocaleDataWrapper().getCurrSymbol(); } -void LongCurrencyFormatter::SetValue( BigInt nNewValue ) +void LongCurrencyFormatter::SetValue(const BigInt& rNewValue) { - SetUserValue( nNewValue ); + SetUserValue(rNewValue); mnFieldValue = mnLastValue; SetEmptyFieldValueData( false ); } @@ -407,15 +407,15 @@ void LongCurrencyFormatter::ReformatAll() Reformat(); } -void LongCurrencyFormatter::SetMin( BigInt nNewMin ) +void LongCurrencyFormatter::SetMin(const BigInt& rNewMin) { - mnMin = nNewMin; + mnMin = rNewMin; ReformatAll(); } -void LongCurrencyFormatter::SetMax( BigInt nNewMax ) +void LongCurrencyFormatter::SetMax(const BigInt& rNewMax) { - mnMax = nNewMax; + mnMax = rNewMax; ReformatAll(); } @@ -435,7 +435,7 @@ void LongCurrencyFormatter::SetDecimalDigits( sal_uInt16 nDigits ) } -void ImplNewLongCurrencyFieldValue( LongCurrencyField* pField, BigInt nNewValue ) +void ImplNewLongCurrencyFieldValue(LongCurrencyField* pField, const BigInt& rNewValue) { Selection aSelect = pField->GetSelection(); aSelect.Justify(); @@ -443,7 +443,7 @@ void ImplNewLongCurrencyFieldValue( LongCurrencyField* pField, BigInt nNewValue bool bLastSelected = aSelect.Max() == aText.getLength(); BigInt nOldLastValue = pField->mnLastValue; - pField->SetUserValue( nNewValue ); + pField->SetUserValue(rNewValue); pField->mnLastValue = nOldLastValue; if ( bLastSelected ) |