From ec1c4c49301758c54394f9943252e192ad54638b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 22 Nov 2021 14:08:27 +0200 Subject: 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 --- chart2/source/inc/CommonConverters.hxx | 2 +- chart2/source/tools/CommonConverters.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'chart2') 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 ) -- cgit