summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/doctemplates.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-11 22:05:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-12 09:03:02 +0100
commit41ab82d5dbfd04eca6437dc072e0cef15b5d1ae9 (patch)
tree96b2239c97abb505b2367e7b77bc135d9a8da37b /sfx2/source/doc/doctemplates.cxx
parent65d52af42f329bbe7c5e7d6ac617320f7faa4760 (diff)
clang-tidy: performance-unnecessary-copy-initialization in sfx2
Change-Id: If818f7b10eb81f8921b5d90fe0c2db4d4ad97ed6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176439 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc/doctemplates.cxx')
-rw-r--r--sfx2/source/doc/doctemplates.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 0a20cd28f524..153870f483f0 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -1779,7 +1779,7 @@ sal_Bool SfxDocTplService::storeTemplate( const OUString& rGroupName,
throw uno::RuntimeException();
const OUString aMediaType {aTypeProps.getUnpackedValueOrDefault(u"MediaType"_ustr, OUString() )};
- const OUString aExt {aAllExt[0]};
+ const OUString& aExt {aAllExt[0]};
if ( aMediaType.isEmpty() || aExt.isEmpty() )
throw uno::RuntimeException();