summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sfx2/templateabstractview.hxx2
-rw-r--r--sfx2/source/control/templateabstractview.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/templateabstractview.hxx b/include/sfx2/templateabstractview.hxx
index 53641a73c632..d10da2368d06 100644
--- a/include/sfx2/templateabstractview.hxx
+++ b/include/sfx2/templateabstractview.hxx
@@ -112,7 +112,7 @@ public:
long getThumbnailWidth() const { return mnThumbnailWidth;}
long getThumbnailHeight() const {return mnThumbnailHeight;}
- void RemoveDefaultTemplateIcon( OUString rPath);
+ void RemoveDefaultTemplateIcon( const OUString& rPath);
static BitmapEx scaleImg (const BitmapEx &rImg, long width, long height);
diff --git a/sfx2/source/control/templateabstractview.cxx b/sfx2/source/control/templateabstractview.cxx
index a9f358b2eb90..e9656f392cb9 100644
--- a/sfx2/source/control/templateabstractview.cxx
+++ b/sfx2/source/control/templateabstractview.cxx
@@ -267,7 +267,7 @@ bool TemplateAbstractView::IsDefaultTemplate(const OUString& rPath)
return false;
}
-void TemplateAbstractView::RemoveDefaultTemplateIcon( OUString rPath)
+void TemplateAbstractView::RemoveDefaultTemplateIcon(const OUString& rPath)
{
for (ThumbnailViewItem* pItem : mItemList)
{