diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 12:20:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-04 15:29:54 +0100 |
commit | c34e8bd71384326184baac7dea31f7ddf9bae6bc (patch) | |
tree | 0914b24023030781b3a74a768be9df4d2873b4b9 /svtools/source | |
parent | a1cdde17aa27902ee162d5b40860f05c592c4de8 (diff) |
loplugin:stringviewparam: operator +=
Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/config/extcolorcfg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx index 397d83b1cf94..1fa91e645dc2 100644 --- a/svtools/source/config/extcolorcfg.cxx +++ b/svtools/source/config/extcolorcfg.cxx @@ -217,7 +217,7 @@ void ExtendedColorConfig_Impl::EnableBroadcast() ExtendedColorConfig::m_pImpl->m_bIsBroadcastEnabled = true; } -static void lcl_addString(uno::Sequence < OUString >& _rSeq,const OUString& _sAdd) +static void lcl_addString(uno::Sequence < OUString >& _rSeq,std::u16string_view _sAdd) { for(OUString & i : _rSeq) i += _sAdd; @@ -319,7 +319,7 @@ void ExtendedColorConfig_Impl::FillComponentColors(const uno::Sequence < OUStrin const OUString sColor("/Color"); lcl_addString(aColorNames,sColor); - lcl_addString(aDefaultColorNames,"/DefaultColor"); + lcl_addString(aDefaultColorNames,u"/DefaultColor"); uno::Sequence< uno::Any > aColors = GetProperties( aColorNames ); const uno::Any* pColors = aColors.getConstArray(); |