summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/dialogs
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-29 12:20:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-04 15:29:54 +0100
commitc34e8bd71384326184baac7dea31f7ddf9bae6bc (patch)
tree0914b24023030781b3a74a768be9df4d2873b4b9 /chart2/source/controller/dialogs
parentlok: don't log warnings (diff)
downloadcore-c34e8bd71384326184baac7dea31f7ddf9bae6bc.tar.gz
core-c34e8bd71384326184baac7dea31f7ddf9bae6bc.zip
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/source/controller/dialogs')
-rw-r--r--chart2/source/controller/dialogs/ObjectNameProvider.cxx10
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;
}