diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-13 14:29:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-17 09:57:35 +0100 |
commit | 8ef6067596cf4b2c52fbce94b44bf7af9fefa643 (patch) | |
tree | f4cca1a99ba97683b14fa6fe0f1f45f75bf855c2 /cui | |
parent | 75bada928cf08d2afc6efe52ba99b45088bc9eec (diff) |
loplugin:stringviewparam check methods too
not just functions
Change-Id: Icca295dd159002b428b73f2c95d40725434f04d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105789
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/SvxConfigPageHelper.cxx | 2 | ||||
-rw-r--r-- | cui/source/inc/SvxConfigPageHelper.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/customize/SvxConfigPageHelper.cxx b/cui/source/customize/SvxConfigPageHelper.cxx index d54bb7cdaf1a..468441a6d7cc 100644 --- a/cui/source/customize/SvxConfigPageHelper.cxx +++ b/cui/source/customize/SvxConfigPageHelper.cxx @@ -45,7 +45,7 @@ void SvxConfigPageHelper::RemoveEntry(SvxEntries* pEntries, SvxConfigEntry const } OUString SvxConfigPageHelper::replaceSaveInName(const OUString& rMessage, - const OUString& rSaveInName) + std::u16string_view rSaveInName) { OUString name = rMessage.replaceFirst("%SAVE IN SELECTION%", rSaveInName); diff --git a/cui/source/inc/SvxConfigPageHelper.hxx b/cui/source/inc/SvxConfigPageHelper.hxx index 797ff74c9a5e..9a53af2651aa 100644 --- a/cui/source/inc/SvxConfigPageHelper.hxx +++ b/cui/source/inc/SvxConfigPageHelper.hxx @@ -28,7 +28,7 @@ class SvxConfigPageHelper public: static void RemoveEntry(SvxEntries* pEntries, SvxConfigEntry const* pChildEntry); - static OUString replaceSaveInName(const OUString& rMessage, const OUString& rSaveInName); + static OUString replaceSaveInName(const OUString& rMessage, std::u16string_view rSaveInName); static OUString stripHotKey(const OUString& str); static OUString replaceSixteen(const OUString& str, sal_Int32 nReplacement); |