diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-28 17:56:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 16:42:33 +0100 |
commit | 042033f1e6da22616cb76c8d950c20c9efecbad5 (patch) | |
tree | 26b3f1f42d067506f44550b410f3fb9640616a5b /basic/source/uno | |
parent | ccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (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 'basic/source/uno')
-rw-r--r-- | basic/source/uno/namecont.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index ec112b466f3f..dc83ae5a3546 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -66,6 +66,7 @@ #include <cppuhelper/supportsservice.hxx> #include <cppuhelper/typeprovider.hxx> #include <memory> +#include <string_view> namespace basic { @@ -571,8 +572,8 @@ static void checkAndCopyFileImpl( const INetURLObject& rSourceFolderInetObj, } } -static void createVariableURL( OUString& rStr, const OUString& rLibName, - const OUString& rInfoFileName, bool bUser ) +static void createVariableURL( OUString& rStr, std::u16string_view rLibName, + std::u16string_view rInfoFileName, bool bUser ) { if( bUser ) { @@ -582,7 +583,7 @@ static void createVariableURL( OUString& rStr, const OUString& rLibName, { rStr = "$(INST)/" LIBO_SHARE_FOLDER "/basic/"; } - rStr += rLibName + "/" + rInfoFileName + ".xlb/"; + rStr += OUString::Concat(rLibName) + "/" + rInfoFileName + ".xlb/"; } void SfxLibraryContainer::init( const OUString& rInitialDocumentURL, const uno::Reference< embed::XStorage >& rxInitialStorage ) |