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

Noel Grandin noelgrandin at gmail.com
Sat May 21 07:17:59 UTC 2016


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

New commits:
commit da03b62bb4d44ad1410a4dff15f97bacd55fb99b
Author: Noel Grandin <noelgrandin at gmail.com>
Date:   Sat May 21 09:16:59 2016 +0200

    loplugin:passstuffbyref
    
    Change-Id: I60dd37a3dbac8b82c115290f2f3a9e8440a1cba6
    Reviewed-on: https://gerrit.libreoffice.org/25250
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index 12793ff..fc42517 100644
--- a/include/sfx2/templatedlg.hxx
+++ b/include/sfx2/templatedlg.hxx
@@ -86,7 +86,7 @@ private:
 
     DECL_LINK_TYPED(SearchUpdateHdl, Edit&, void);
 
-    void OnTemplateImportCategory(OUString sCategory);
+    void OnTemplateImportCategory(const OUString& sCategory);
     static void OnTemplateLink ();
     void OnTemplateOpen ();
     void OnTemplateExport ();
@@ -191,7 +191,7 @@ public:
 
     void HideNewCategoryOption();
 
-    inline OUString GetSelectedCategory() const {
+    inline const OUString& GetSelectedCategory() const {
         return msSelectedCategory;
     };
 
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index da92be3..14f89a7 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -891,7 +891,7 @@ void SfxTemplateManagerDlg::OnTemplateState (const ThumbnailViewItem *pItem)
     }
 }
 
-void SfxTemplateManagerDlg::OnTemplateImportCategory(OUString sCategory)
+void SfxTemplateManagerDlg::OnTemplateImportCategory(const OUString& sCategory)
 {
     sal_Int16 nDialogType =
         css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE;


More information about the Libreoffice-commits mailing list