[Libreoffice-commits] core.git: 2 commits - include/sfx2 sfx2/source

Stephan Bergmann sbergman at redhat.com
Sun May 22 19:39:44 UTC 2016


 include/sfx2/templatedlg.hxx              |    2 +-
 include/sfx2/templatelocalview.hxx        |    4 ++--
 sfx2/source/control/templatelocalview.cxx |    4 ++--
 sfx2/source/doc/templatedlg.cxx           |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 3a9657b85d2ff5e365c96496ffa749efd4885501
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun May 22 21:39:10 2016 +0200

    loplugin:staticmethods
    
    Change-Id: Icd00538ececfb6ebff795f75ab17e50b536b67b2

diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index fc42517..b4f9e29 100644
--- a/include/sfx2/templatedlg.hxx
+++ b/include/sfx2/templatedlg.hxx
@@ -69,7 +69,7 @@ private:
     DECL_LINK_TYPED(MoveClickHdl, Button*, void);
     DECL_LINK_TYPED(ExportClickHdl, Button*, void);
     DECL_LINK_TYPED(ImportClickHdl, Button*, void);
-    DECL_LINK_TYPED(LinkClickHdl, Button*, void);
+    DECL_STATIC_LINK_TYPED(SfxTemplateManagerDlg, LinkClickHdl, Button*, void);
 
     DECL_LINK_TYPED(TVItemStateHdl, const ThumbnailViewItem*, void);
 
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 14f89a7..848aeb8 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -659,7 +659,7 @@ IMPL_LINK_NOARG_TYPED(SfxTemplateManagerDlg, ImportClickHdl, Button*, void)
     mpCBFolder->SelectEntryPos(0);
 }
 
-IMPL_LINK_NOARG_TYPED(SfxTemplateManagerDlg, LinkClickHdl, Button*, void)
+IMPL_STATIC_LINK_NOARG_TYPED(SfxTemplateManagerDlg, LinkClickHdl, Button*, void)
 {
     OnTemplateLink();
 }
commit 63d108589724cdadfdcaf7c704382a8eb31ea8e3
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun May 22 21:34:44 2016 +0200

    loplugin:passstuffbyref
    
    Change-Id: Ia243148779b82bd8a1d1e82990622c01e2026a06

diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx
index 49e0c8e4..b426531 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 7e84c5e..2ff233f 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)
     {


More information about the Libreoffice-commits mailing list