summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sfx2/templatedlg.hxx4
-rw-r--r--sfx2/source/doc/templatedlg.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index 12793ff9319c..fc425172f1a6 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 da92be39d575..14f89a71b614 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;