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 | |
parent | 0f98299f7aa44bbb55c1bfeddca7799f727d14b0 (diff) |
V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
Diffstat (limited to 'include')
-rw-r--r-- | include/basegfx/matrix/b3dhommatrix.hxx | 2 | ||||
-rw-r--r-- | include/registry/reflwrit.hxx | 12 | ||||
-rw-r--r-- | include/sfx2/dinfdlg.hxx | 6 | ||||
-rw-r--r-- | include/sfx2/docfile.hxx | 2 | ||||
-rw-r--r-- | include/svtools/ctrlbox.hxx | 4 | ||||
-rw-r--r-- | include/toolkit/helper/vclunohelper.hxx | 2 | ||||
-rw-r--r-- | include/tools/b3dtrans.hxx | 6 | ||||
-rw-r--r-- | include/tools/simplerm.hxx | 2 | ||||
-rw-r--r-- | include/vcl/longcurr.hxx | 14 | ||||
-rw-r--r-- | include/vcl/taskpanelist.hxx | 2 | ||||
-rw-r--r-- | include/vcl/toolbox.hxx | 2 |
11 files changed, 27 insertions, 27 deletions
diff --git a/include/basegfx/matrix/b3dhommatrix.hxx b/include/basegfx/matrix/b3dhommatrix.hxx index ad7c47d2e349..0ffd911b5bf6 100644 --- a/include/basegfx/matrix/b3dhommatrix.hxx +++ b/include/basegfx/matrix/b3dhommatrix.hxx @@ -86,7 +86,7 @@ namespace basegfx // build orientation matrix void orientation( - B3DPoint aVRP = B3DPoint(0.0,0.0,1.0), + const B3DPoint& rVRP = B3DPoint(0.0,0.0,1.0), B3DVector aVPN = B3DVector(0.0,0.0,1.0), B3DVector aVUV = B3DVector(0.0,1.0,0.0)); diff --git a/include/registry/reflwrit.hxx b/include/registry/reflwrit.hxx index f97574d67fbb..75bff949daf5 100644 --- a/include/registry/reflwrit.hxx +++ b/include/registry/reflwrit.hxx @@ -143,13 +143,13 @@ public: @param constValue specifies the value of the field. The value is only interesting for enum values or constants. */ - inline void setFieldData( sal_uInt16 index, + inline void setFieldData( sal_uInt16 index, const rtl::OUString& name, const rtl::OUString& typeName, const rtl::OUString& doku, const rtl::OUString& fileName, - RTFieldAccess access, - RTConstValue constValue = RTConstValue()); + RTFieldAccess access, + const RTConstValue& constValue = RTConstValue()); /** sets the data for a method. @@ -270,13 +270,13 @@ inline RegistryTypeWriter& RegistryTypeWriter::operator == (const RegistryTypeWr return *this; } -inline void RegistryTypeWriter::setFieldData( sal_uInt16 index, +inline void RegistryTypeWriter::setFieldData( sal_uInt16 index, const rtl::OUString& name, const rtl::OUString& typeName, const rtl::OUString& doku, const rtl::OUString& fileName, - RTFieldAccess access, - RTConstValue constValue) + RTFieldAccess access, + const RTConstValue& constValue) { m_pApi->setFieldData(m_hImpl, index, name.pData, typeName.pData, doku.pData, fileName.pData, access, constValue.m_type, constValue.m_value); } diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx index 027f6bcfb085..79ba1c0fbd3a 100644 --- a/include/sfx2/dinfdlg.hxx +++ b/include/sfx2/dinfdlg.hxx @@ -118,7 +118,7 @@ public: ::com::sun::star::util::DateTime getCreationDate() const { return m_CreationDate; } - void setCreationDate(::com::sun::star::util::DateTime i_val) { + void setCreationDate(const css::util::DateTime& i_val) { m_CreationDate = i_val; } OUString getModifiedBy() const { return m_ModifiedBy; } @@ -126,14 +126,14 @@ public: ::com::sun::star::util::DateTime getModificationDate() const { return m_ModificationDate; } - void setModificationDate(::com::sun::star::util::DateTime i_val) { + void setModificationDate(const css::util::DateTime& i_val) { m_ModificationDate = i_val; } OUString getPrintedBy() const { return m_PrintedBy; } void setPrintedBy(const OUString& i_val) { m_PrintedBy = i_val; } ::com::sun::star::util::DateTime getPrintDate() const { return m_PrintDate; } - void setPrintDate(::com::sun::star::util::DateTime i_val) { + void setPrintDate(const css::util::DateTime& i_val) { m_PrintDate = i_val; } sal_Int16 getEditingCycles() const { return m_EditingCycles; } diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx index 70875845a00b..26e3460f5e62 100644 --- a/include/sfx2/docfile.hxx +++ b/include/sfx2/docfile.hxx @@ -265,7 +265,7 @@ public: static css::uno::Sequence < css::util::RevisionTag > GetVersionList( const css::uno::Reference< css::embed::XStorage >& xStorage ); static OUString CreateTempCopyWithExt( const OUString& aURL ); - static bool CallApproveHandler( const css::uno::Reference< css::task::XInteractionHandler >& xHandler, css::uno::Any aRequest, bool bAllowAbort ); + static bool CallApproveHandler(const css::uno::Reference< css::task::XInteractionHandler >& xHandler, const css::uno::Any& rRequest, bool bAllowAbort); static bool SetWritableForUserOnly( const OUString& aURL ); static sal_uInt32 CreatePasswordToModifyHash( const OUString& aPasswd, bool bWriter ); diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index 6f78ee337069..d382a9d6e34b 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -311,11 +311,11 @@ public: using ListBox::InsertEntry; /** Insert a listbox entry with all widths in Twips. */ - void InsertEntry( BorderWidthImpl aWidthImpl, + void InsertEntry(const BorderWidthImpl& rWidthImpl, sal_uInt16 nStyle, long nMinWidth = 0, ColorFunc pColor1Fn = &sameColor, ColorFunc pColor2Fn = &sameColor, - ColorDistFunc pColorDistFn = &sameDistColor ); + ColorDistFunc pColorDistFn = &sameDistColor); using ListBox::GetEntryPos; sal_Int32 GetEntryPos( sal_uInt16 nStyle = com::sun::star::table::BorderLineStyle::SOLID ) const; diff --git a/include/toolkit/helper/vclunohelper.hxx b/include/toolkit/helper/vclunohelper.hxx index e8a6c9b400f2..dc1ae888476f 100644 --- a/include/toolkit/helper/vclunohelper.hxx +++ b/include/toolkit/helper/vclunohelper.hxx @@ -110,7 +110,7 @@ public: static FontItalic ConvertFontSlant( css::awt::FontSlant ); // Rectangle - static bool IsZero( ::com::sun::star::awt::Rectangle rRect ); + static bool IsZero(const css::awt::Rectangle& rRect); static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer> CreateControlContainer( vcl::Window* pWindow ); diff --git a/include/tools/b3dtrans.hxx b/include/tools/b3dtrans.hxx index 7787da5709e7..ba3e87b32b31 100644 --- a/include/tools/b3dtrans.hxx +++ b/include/tools/b3dtrans.hxx @@ -124,9 +124,9 @@ public: // Orientation void SetOrientation( - basegfx::B3DPoint aVRP = basegfx::B3DPoint(0.0,0.0,1.0), - basegfx::B3DVector aVPN = basegfx::B3DVector(0.0,0.0,1.0), - basegfx::B3DVector aVUP = basegfx::B3DVector(0.0,1.0,0.0)); + const basegfx::B3DPoint& rVRP = basegfx::B3DPoint(0.0,0.0,1.0), + const basegfx::B3DVector& rVPN = basegfx::B3DVector(0.0,0.0,1.0), + const basegfx::B3DVector& rVUP = basegfx::B3DVector(0.0,1.0,0.0)); const basegfx::B3DHomMatrix& GetOrientation() { return maOrientation; } const basegfx::B3DHomMatrix& GetInvOrientation() { return maInvOrientation; } diff --git a/include/tools/simplerm.hxx b/include/tools/simplerm.hxx index 2674386210ca..09fd73271168 100644 --- a/include/tools/simplerm.hxx +++ b/include/tools/simplerm.hxx @@ -51,7 +51,7 @@ public: virtual ~SimpleResMgr(); static SimpleResMgr* Create( const sal_Char* pPrefixName, - LanguageTag aLocale = LanguageTag( LANGUAGE_SYSTEM) );// only in VCL + const LanguageTag& rLocale = LanguageTag( LANGUAGE_SYSTEM) );// only in VCL bool IsValid() const { return m_pResImpl != NULL; } 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 ); |