diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-05 20:48:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-06 09:43:38 +0000 |
commit | 3f6f21e6e7721bbca13c1e632c0247939538ba82 (patch) | |
tree | e2679ab8218fc1d405ae22c16da3780d55ce411a /svx | |
parent | 4cd7b4ab8aeaf61f5e30e4b63e039b7bb9519e85 (diff) |
V801: Decreased performance
Change-Id: Ia58f19c7121dc8a835436bcefc7fd1e3789407db
Diffstat (limited to 'svx')
6 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index 5a426d5b5e20..632ef57ed3f4 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -76,15 +76,15 @@ ParaPropertyPanel* ParaPropertyPanel::Create ( } void ParaPropertyPanel::HandleContextChange ( - const ::sfx2::sidebar::EnumContext aContext) + const ::sfx2::sidebar::EnumContext& rContext) { - if (maContext == aContext) + if (maContext == rContext) { // Nothing to do. return; } - maContext = aContext; + maContext = rContext; switch (maContext.GetCombinedContext_DI()) { case CombinedEnumContext(Application_Calc, Context_DrawText): diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx index c61c1c89be94..a6b3f74cf6d5 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx @@ -53,7 +53,7 @@ public: SfxBindings* GetBindings() { return mpBindings;} virtual void HandleContextChange ( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate( const sal_uInt16 nSId, diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 6f6dceb6a62b..d4011d67c0dc 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -244,15 +244,15 @@ void PosSizePropertyPanel::DataChanged( } void PosSizePropertyPanel::HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) + const ::sfx2::sidebar::EnumContext& rContext) { - if(maContext == aContext) + if (maContext == rContext) { // Nothing to do. return; } - maContext = aContext; + maContext = rContext; sal_Int32 nLayoutMode (0); switch (maContext.GetCombinedContext_DI()) diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx index a0b39cd2c5e1..e9d665673773 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx @@ -60,7 +60,7 @@ public: const DataChangedEvent& rEvent) SAL_OVERRIDE; virtual void HandleContextChange( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate( const sal_uInt16 nSId, diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx index 44d8a2cb65b3..5744f0a1449c 100644 --- a/svx/source/sidebar/text/TextPropertyPanel.cxx +++ b/svx/source/sidebar/text/TextPropertyPanel.cxx @@ -119,12 +119,12 @@ TextPropertyPanel::~TextPropertyPanel (void) } void TextPropertyPanel::HandleContextChange ( - const ::sfx2::sidebar::EnumContext aContext) + const ::sfx2::sidebar::EnumContext& rContext) { - if (maContext == aContext) + if (maContext == rContext) return; - maContext = aContext; + maContext = rContext; mpToolBoxIncDec->Show(maContext.GetApplication_DI() != sfx2::sidebar::EnumContext::Application_Calc); bool bWriterText = false; diff --git a/svx/source/sidebar/text/TextPropertyPanel.hxx b/svx/source/sidebar/text/TextPropertyPanel.hxx index 9385dcc17d61..f0734dab09a7 100644 --- a/svx/source/sidebar/text/TextPropertyPanel.hxx +++ b/svx/source/sidebar/text/TextPropertyPanel.hxx @@ -62,7 +62,7 @@ public: virtual void HandleContextChange ( - const ::sfx2::sidebar::EnumContext aContext) SAL_OVERRIDE; + const ::sfx2::sidebar::EnumContext& rContext) SAL_OVERRIDE; virtual void NotifyItemUpdate( |