summaryrefslogtreecommitdiff
path: root/framework/source/services
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-28 17:56:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-29 16:42:33 +0100
commit042033f1e6da22616cb76c8d950c20c9efecbad5 (patch)
tree26b3f1f42d067506f44550b410f3fb9640616a5b /framework/source/services
parentccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff)
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'framework/source/services')
-rw-r--r--framework/source/services/pathsettings.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx
index 6f288ce96da4..72c15015f586 100644
--- a/framework/source/services/pathsettings.cxx
+++ b/framework/source/services/pathsettings.cxx
@@ -19,6 +19,7 @@
#include <sal/config.h>
+#include <string_view>
#include <utility>
#include <unordered_map>
@@ -402,9 +403,9 @@ private:
void impl_storePath(const PathSettings::PathInfo& aPath);
- css::uno::Sequence< sal_Int32 > impl_mapPathName2IDList(const OUString& sPath);
+ css::uno::Sequence< sal_Int32 > impl_mapPathName2IDList(std::u16string_view sPath);
- void impl_notifyPropListener( const OUString& sPath ,
+ void impl_notifyPropListener( std::u16string_view sPath ,
const PathSettings::PathInfo* pPathOld,
const PathSettings::PathInfo* pPathNew);
@@ -793,11 +794,11 @@ PathSettings::EChangeOp PathSettings::impl_updatePath(const OUString& sPath
return eOp;
}
-css::uno::Sequence< sal_Int32 > PathSettings::impl_mapPathName2IDList(const OUString& sPath)
+css::uno::Sequence< sal_Int32 > PathSettings::impl_mapPathName2IDList(std::u16string_view sPath)
{
- OUString sInternalProp = sPath+POSTFIX_INTERNAL_PATHS;
- OUString sUserProp = sPath+POSTFIX_USER_PATHS;
- OUString sWriteProp = sPath+POSTFIX_WRITE_PATH;
+ OUString sInternalProp = OUString::Concat(sPath)+POSTFIX_INTERNAL_PATHS;
+ OUString sUserProp = OUString::Concat(sPath)+POSTFIX_USER_PATHS;
+ OUString sWriteProp = OUString::Concat(sPath)+POSTFIX_WRITE_PATH;
// Attention: The default set of IDs is fix and must follow these schema.
// Otherwise the outside code ant work for new added properties.
@@ -835,7 +836,7 @@ css::uno::Sequence< sal_Int32 > PathSettings::impl_mapPathName2IDList(const OUSt
return lIDs;
}
-void PathSettings::impl_notifyPropListener( const OUString& sPath,
+void PathSettings::impl_notifyPropListener( std::u16string_view sPath,
const PathSettings::PathInfo* pPathOld,
const PathSettings::PathInfo* pPathNew)
{