summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/cuicharmap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 07:46:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:44:09 +0200
commita8a461b2fba27f1a729e2b9b28426286617892a9 (patch)
tree8e05dfae5ef9b070dc54fcbd344ad591cf6e229c /cui/source/dialogs/cuicharmap.cxx
parentf806a2832aee62efc0e0404f7c24d53aaaf814d0 (diff)
clang-tidy performance-unnecessary-copy-init in canvas..cui
Change-Id: I08c137d852b5f1f817c171ee4f1cee7971417dc4 Reviewed-on: https://gerrit.libreoffice.org/62214 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/dialogs/cuicharmap.cxx')
-rw-r--r--cui/source/dialogs/cuicharmap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index 64581f5f5165..4639d6a6c9df 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -746,7 +746,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, SubsetSelectHdl, weld::ComboBox&, void)
IMPL_LINK(SvxCharacterMap, RecentClearClickHdl, SvxCharView*, rView, void)
{
- OUString sTitle = rView->GetText();
+ const OUString& sTitle = rView->GetText();
auto itChar = std::find(maRecentCharList.begin(), maRecentCharList.end(), sTitle);
OUString sFont = rView->GetFont().GetFamilyName();