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 /cui/source/customize/cfgutil.cxx | |
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 'cui/source/customize/cfgutil.cxx')
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index e538bc25bcee..6c81c18fb573 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -76,9 +76,10 @@ const char CMDURL_FPART_ONLY [] = "FamilyName:string="; const OUStringLiteral STYLEPROP_UINAME = u"DisplayName"; -OUString SfxStylesInfo_Impl::generateCommand(const OUString& sFamily, const OUString& sStyle) +OUString SfxStylesInfo_Impl::generateCommand( + std::u16string_view sFamily, std::u16string_view sStyle) { - return ".uno:StyleApply?Style:string=" + return OUString::Concat(".uno:StyleApply?Style:string=") + sStyle + "&FamilyName:string=" + sFamily; @@ -999,10 +1000,10 @@ void CuiConfigGroupListBox::SelectMacro( const SfxMacroInfoItem *pItem ) pItem->GetQualifiedName() ); } -void CuiConfigGroupListBox::SelectMacro( const OUString& rBasic, +void CuiConfigGroupListBox::SelectMacro( std::u16string_view rBasic, const OUString& rMacro ) { - const OUString aBasicName(rBasic + " " + xImp->m_sMacros); + const OUString aBasicName(OUString::Concat(rBasic) + " " + xImp->m_sMacros); sal_Int32 nIdx {rMacro.lastIndexOf('.')}; const OUString aMethod( rMacro.copy(nIdx+1) ); OUString aLib; |