summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-22 21:34:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-22 21:34:44 +0200
commit63d108589724cdadfdcaf7c704382a8eb31ea8e3 (patch)
treedecbc8956dd6ecf2d82641be54ee3e3c3086b5a7
parent033b2ae8775d1dcf49f798e267761000cc51627c (diff)
loplugin:passstuffbyref
Change-Id: Ia243148779b82bd8a1d1e82990622c01e2026a06
-rw-r--r--include/sfx2/templatelocalview.hxx4
-rw-r--r--sfx2/source/control/templatelocalview.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx
index 49e0c8e4796a..b4265313427e 100644
--- a/include/sfx2/templatelocalview.hxx
+++ b/include/sfx2/templatelocalview.hxx
@@ -53,11 +53,11 @@ public:
sal_uInt16 getCurRegionItemId () const;
- ThumbnailViewItem* getRegion(OUString sStr);
+ ThumbnailViewItem* getRegion(OUString const & sStr);
sal_uInt16 getRegionId (size_t pos) const;
- sal_uInt16 getRegionId (OUString sRegionName) const;
+ sal_uInt16 getRegionId (OUString const & sRegionName) const;
OUString getRegionName(const sal_uInt16 nRegionId) const;
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 7e84c5e26366..2ff233f6a5f0 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -169,7 +169,7 @@ void TemplateLocalView::showRegion(const OUString &rName)
}
}
-ThumbnailViewItem* TemplateLocalView::getRegion(OUString rName)
+ThumbnailViewItem* TemplateLocalView::getRegion(OUString const & rName)
{
for (TemplateContainerItem* pRegion : maRegions)
if (pRegion->maTitle == rName)
@@ -256,7 +256,7 @@ sal_uInt16 TemplateLocalView::getRegionId(size_t pos) const
return maRegions[pos]->mnId;
}
-sal_uInt16 TemplateLocalView::getRegionId(OUString sRegion) const
+sal_uInt16 TemplateLocalView::getRegionId(OUString const & sRegion) const
{
for (TemplateContainerItem* pRegion : maRegions)
{