[Libreoffice-commits] core.git: include/sfx2 sfx2/source
Stephan Bergmann
sbergman at redhat.com
Mon Jun 22 00:36:37 PDT 2015
include/sfx2/sidebar/Deck.hxx | 2 +-
sfx2/source/sidebar/Deck.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 097406006266f1d59a57e0379fd195190c214df2
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jun 22 09:35:30 2015 +0200
loplugin:passstuffbyref
Change-Id: Ib356214e2aee699d7def22ab84ad806cb801bcb5
diff --git a/include/sfx2/sidebar/Deck.hxx b/include/sfx2/sidebar/Deck.hxx
index edd735c..43fddcc 100644
--- a/include/sfx2/sidebar/Deck.hxx
+++ b/include/sfx2/sidebar/Deck.hxx
@@ -51,7 +51,7 @@ public:
void ResetPanels (const SharedPanelContainer& rPanels);
const SharedPanelContainer& GetPanels() const { return maPanels; }
- Panel* GetPanel(OUString panelId);
+ Panel* GetPanel(OUString const & panelId);
void RequestLayout();
vcl::Window* GetPanelParentWindow();
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx
index b2eb225..9866f4d 100644
--- a/sfx2/source/sidebar/Deck.cxx
+++ b/sfx2/source/sidebar/Deck.cxx
@@ -223,7 +223,7 @@ vcl::Window* Deck::GetPanelParentWindow()
return mpScrollContainer.get();
}
-Panel* Deck::GetPanel(const OUString panelId)
+Panel* Deck::GetPanel(const OUString & panelId)
{
for (size_t i = 0; i < maPanels.size(); i++)
{
More information about the Libreoffice-commits
mailing list