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 /chart2 | |
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 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/ObjectNameProvider.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chart2/source/controller/dialogs/ObjectNameProvider.cxx b/chart2/source/controller/dialogs/ObjectNameProvider.cxx index 2a3d954a61fa..56dca8dde908 100644 --- a/chart2/source/controller/dialogs/ObjectNameProvider.cxx +++ b/chart2/source/controller/dialogs/ObjectNameProvider.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <string_view> + #include <ObjectNameProvider.hxx> #include <ResId.hxx> #include <strings.hrc> @@ -80,11 +84,11 @@ OUString lcl_getFullSeriesName( const OUString& rObjectCID, const Reference< fra return aRet; } -void lcl_addText( OUString& rOut, const OUString& rSeparator, const OUString& rNext ) +void lcl_addText( OUString& rOut, std::u16string_view rSeparator, std::u16string_view rNext ) { - if( !(rOut.isEmpty() || rNext.isEmpty()) ) + if( !(rOut.isEmpty() || rNext.empty()) ) rOut+=rSeparator; - if( !rNext.isEmpty() ) + if( !rNext.empty() ) rOut+=rNext; } |