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 /reportdesign | |
parent | 0f98299f7aa44bbb55c1bfeddca7799f727d14b0 (diff) |
V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/dlg/CondFormat.cxx | 4 | ||||
-rw-r--r-- | reportdesign/source/ui/inc/CondFormat.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/reportdesign/source/ui/dlg/CondFormat.cxx b/reportdesign/source/ui/dlg/CondFormat.cxx index 07b06dd1bd6f..16aa8a31120e 100644 --- a/reportdesign/source/ui/dlg/CondFormat.cxx +++ b/reportdesign/source/ui/dlg/CondFormat.cxx @@ -358,7 +358,7 @@ namespace rptui impl_conditionCountChanged(); } - void ConditionalFormattingDialog::applyCommand( size_t _nCondIndex, sal_uInt16 _nCommandId, const ::Color _aColor ) + void ConditionalFormattingDialog::applyCommand(size_t _nCondIndex, sal_uInt16 _nCommandId, const ::Color& rColor) { OSL_PRECOND( _nCommandId, "ConditionalFormattingDialog::applyCommand: illegal command id!" ); try @@ -374,7 +374,7 @@ namespace rptui aArgs[1].Value <<= VCLUnoHelper::GetInterface(this); aArgs[2].Name = PROPERTY_FONTCOLOR; - aArgs[2].Value <<= (sal_uInt32)_aColor.GetColor(); + aArgs[2].Value <<= (sal_uInt32)rColor.GetColor(); // we use this way to create undo actions m_rController.executeUnChecked(_nCommandId,aArgs); diff --git a/reportdesign/source/ui/inc/CondFormat.hxx b/reportdesign/source/ui/inc/CondFormat.hxx index 254edf95fe3b..19c3cc24440e 100644 --- a/reportdesign/source/ui/inc/CondFormat.hxx +++ b/reportdesign/source/ui/inc/CondFormat.hxx @@ -53,7 +53,7 @@ namespace rptui public: virtual void addCondition( size_t _nAddAfterIndex ) = 0; virtual void deleteCondition( size_t _nCondIndex ) = 0; - virtual void applyCommand( size_t _nCondIndex, sal_uInt16 _nCommandId, const ::Color _aColor ) = 0; + virtual void applyCommand( size_t _nCondIndex, sal_uInt16 _nCommandId, const ::Color& rColor ) = 0; virtual void moveConditionUp( size_t _nCondIndex ) = 0; virtual void moveConditionDown( size_t _nCondIndex ) = 0; virtual OUString getDataField() const = 0; @@ -102,7 +102,7 @@ namespace rptui // IConditionalFormatAction overridables virtual void addCondition( size_t _nAddAfterIndex ) SAL_OVERRIDE; virtual void deleteCondition( size_t _nCondIndex ) SAL_OVERRIDE; - virtual void applyCommand( size_t _nCondIndex, sal_uInt16 _nCommandId, const ::Color _aColor ) SAL_OVERRIDE; + virtual void applyCommand( size_t _nCondIndex, sal_uInt16 _nCommandId, const ::Color& rColor ) SAL_OVERRIDE; virtual void moveConditionUp( size_t _nCondIndex ) SAL_OVERRIDE; virtual void moveConditionDown( size_t _nCondIndex ) SAL_OVERRIDE; virtual OUString getDataField() const SAL_OVERRIDE; |