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 /include/vcl | |
parent | 0f98299f7aa44bbb55c1bfeddca7799f727d14b0 (diff) |
V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/longcurr.hxx | 14 | ||||
-rw-r--r-- | include/vcl/taskpanelist.hxx | 2 | ||||
-rw-r--r-- | include/vcl/toolbox.hxx | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/include/vcl/longcurr.hxx b/include/vcl/longcurr.hxx index 74de049e8f5a..0c2d1a969de0 100644 --- a/include/vcl/longcurr.hxx +++ b/include/vcl/longcurr.hxx @@ -60,14 +60,14 @@ public: void SetCurrencySymbol( const OUString& rStr ); OUString GetCurrencySymbol() const; - void SetMin( BigInt nNewMin ); + void SetMin(const BigInt& rNewMin); BigInt GetMin() const { return mnMin; } - void SetMax( BigInt nNewMax ); + void SetMax(const BigInt& rNewMax); BigInt GetMax() const { return mnMax; } void SetDecimalDigits( sal_uInt16 nDigits ); sal_uInt16 GetDecimalDigits() const { return mnDecimalDigits;} - void SetValue( BigInt nNewValue ); + void SetValue(const BigInt& rNewValue); void SetUserValue( BigInt nNewValue ); BigInt GetValue() const; bool IsEmptyValue() const { return GetField()->GetText().isEmpty(); } @@ -81,7 +81,7 @@ public: class VCL_DLLPUBLIC LongCurrencyField : public SpinField, public LongCurrencyFormatter { - friend void ImplNewLongCurrencyFieldValue( LongCurrencyField*, BigInt ); + friend void ImplNewLongCurrencyFieldValue(LongCurrencyField*, const BigInt&); private: BigInt mnSpinSize; @@ -101,11 +101,11 @@ public: void First() SAL_OVERRIDE; void Last() SAL_OVERRIDE; - void SetFirst( BigInt nNewFirst ) { mnFirst = nNewFirst; } + void SetFirst(const BigInt& rNewFirst ) { mnFirst = rNewFirst; } BigInt GetFirst() const { return mnFirst; } - void SetLast( BigInt nNewLast ) { mnLast = nNewLast; } + void SetLast(const BigInt& rNewLast ) { mnLast = rNewLast; } BigInt GetLast() const { return mnLast; } - void SetSpinSize( BigInt nNewSize ) { mnSpinSize = nNewSize; } + void SetSpinSize(const BigInt& rNewSize) { mnSpinSize = rNewSize; } BigInt GetSpinSize() const { return mnSpinSize; } }; diff --git a/include/vcl/taskpanelist.hxx b/include/vcl/taskpanelist.hxx index 6e8888dc4eec..c8a6abd0e489 100644 --- a/include/vcl/taskpanelist.hxx +++ b/include/vcl/taskpanelist.hxx @@ -40,7 +40,7 @@ public: void AddWindow( vcl::Window *pWindow ); void RemoveWindow( vcl::Window *pWindow ); - bool HandleKeyEvent( KeyEvent aKeyEvent ); + bool HandleKeyEvent(const KeyEvent& rKeyEvent); }; #endif diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index 672b22958484..44b4b8c046a7 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -206,7 +206,7 @@ private: SAL_DLLPRIVATE sal_uInt16 ImplCalcBreaks( long nWidth, long* pMaxLineWidth, bool bCalcHorz ); SAL_DLLPRIVATE void ImplFormat( bool bResize = false ); SAL_DLLPRIVATE void ImplDrawSpin( bool bUpperIn, bool bLowerIn ); - SAL_DLLPRIVATE void ImplDrawSeparator( sal_uInt16 nPos, Rectangle rRect ); + SAL_DLLPRIVATE void ImplDrawSeparator(sal_uInt16 nPos, const Rectangle& rRect); SAL_DLLPRIVATE void ImplDrawItem( sal_uInt16 nPos, sal_uInt16 nHighlight = 0, bool bPaint = false, bool bLayout = false ); using Window::ImplInvalidate; SAL_DLLPRIVATE void ImplInvalidate( bool bNewCalc = false, bool bFullPaint = false ); |