summaryrefslogtreecommitdiff
path: root/sdext/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-12 12:43:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-13 08:38:53 +0200
commitfdfd517a6f75e394ddcb1e195decbfed33ba56b9 (patch)
treee3bff14e5531affcd908415b4e85d7ceac4aa1fd /sdext/source
parente568c9dca8b93b96a8a130a8fb6f1bba1a33d6ea (diff)
loplugin:stringviewparam whitelist some more functions
for which we have o3tl:: equivalents Change-Id: I4670fd8b703ac47214be213f41e88d1c6ede7032 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132913 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source')
-rw-r--r--sdext/source/minimizer/optimizerdialog.cxx4
-rw-r--r--sdext/source/minimizer/optimizerdialogcontrols.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sdext/source/minimizer/optimizerdialog.cxx b/sdext/source/minimizer/optimizerdialog.cxx
index fbdd95c3c57d..3112c6f22959 100644
--- a/sdext/source/minimizer/optimizerdialog.cxx
+++ b/sdext/source/minimizer/optimizerdialog.cxx
@@ -707,11 +707,11 @@ void TextListenerFormattedField0Pg1::disposing( const css::lang::EventObject& /*
namespace
{
-bool lcl_mapResolution(OUString& rResolution, const OUString& rImageResolution)
+bool lcl_mapResolution(OUString& rResolution, std::u16string_view rImageResolution)
{
if (o3tl::getToken(rImageResolution, 1, ';')!=rResolution)
return false;
- rResolution = rImageResolution.getToken(0, ';');
+ rResolution = o3tl::getToken(rImageResolution, 0, ';');
return true;
}
diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx
index 92ecf16e09e1..4ab29d9694e6 100644
--- a/sdext/source/minimizer/optimizerdialogcontrols.cxx
+++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx
@@ -478,12 +478,12 @@ void OptimizerDialog::InitPage1()
namespace
{
-bool lcl_getResolutionText(OUString& rResolutionText, const OUString& rImageResolution, sal_Int32 nTargetRes)
+bool lcl_getResolutionText(OUString& rResolutionText, std::u16string_view rImageResolution, sal_Int32 nTargetRes)
{
sal_Int32 nIdx{ 0 };
if (o3tl::toInt32(o3tl::getToken(rImageResolution, 0, ';', nIdx))!=nTargetRes)
return false;
- rResolutionText = rImageResolution.getToken(0, ';', nIdx);
+ rResolutionText = o3tl::getToken(rImageResolution, 0, ';', nIdx);
return true;
}