summaryrefslogtreecommitdiffstats
path: root/chart2/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-22 14:08:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-23 14:00:08 +0100
commitec1c4c49301758c54394f9943252e192ad54638b (patch)
treeb53af3cb9154a388495b1af35c3f8ff41d6ebe1f /chart2/source
parenttdf#144769 Properly encode file name in error dialog (diff)
downloadcore-ec1c4c49301758c54394f9943252e192ad54638b.tar.gz
core-ec1c4c49301758c54394f9943252e192ad54638b.zip
O[U]String::replaceAt overloads that take string_view
which results in lots of nice string_view improvements picked up by the plugins Change-Id: Ib0ec3887816b3d4436d003b739d9814f83e244b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125657 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/inc/CommonConverters.hxx2
-rw-r--r--chart2/source/tools/CommonConverters.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/inc/CommonConverters.hxx b/chart2/source/inc/CommonConverters.hxx
index e8daa87d5c95..18adcebf7187 100644
--- a/chart2/source/inc/CommonConverters.hxx
+++ b/chart2/source/inc/CommonConverters.hxx
@@ -206,7 +206,7 @@ sal_Int16 getShortForLongAlso( const css::uno::Any& rAny );
OOO_DLLPUBLIC_CHARTTOOLS
bool replaceParamterInString( OUString & rInOutResourceString,
const OUString & rParamToReplace,
- const OUString & rReplaceWith );
+ std::u16string_view rReplaceWith );
} //namespace chart
diff --git a/chart2/source/tools/CommonConverters.cxx b/chart2/source/tools/CommonConverters.cxx
index b4b4cbf62e72..2695d2da3418 100644
--- a/chart2/source/tools/CommonConverters.cxx
+++ b/chart2/source/tools/CommonConverters.cxx
@@ -519,7 +519,7 @@ sal_Int16 getShortForLongAlso( const uno::Any& rAny )
bool replaceParamterInString( OUString & rInOutResourceString,
const OUString & rParamToReplace,
- const OUString & rReplaceWith )
+ std::u16string_view rReplaceWith )
{
sal_Int32 nPos = rInOutResourceString.indexOf( rParamToReplace );
if( nPos == -1 )