summaryrefslogtreecommitdiffstats
path: root/chart2/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-09-23 14:34:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-09-23 15:29:24 +0200
commit14713f91393abe4ec76ad28bdc45eaced943cd72 (patch)
tree09a100b3424ecf0dca85c4730024bb31f4dcf762 /chart2/qa
parenttdf#143103 Fix hexpand of color button (diff)
downloadcore-14713f91393abe4ec76ad28bdc45eaced943cd72.tar.gz
core-14713f91393abe4ec76ad28bdc45eaced943cd72.zip
loplugin:stringviewparam
Change-Id: I3fc029e2691026bcd315a807e90290d763146648 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122526 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/extras/charttest.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/chart2/qa/extras/charttest.hxx b/chart2/qa/extras/charttest.hxx
index c1772702afd0..9094ab308afb 100644
--- a/chart2/qa/extras/charttest.hxx
+++ b/chart2/qa/extras/charttest.hxx
@@ -30,6 +30,7 @@
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/packages/zip/ZipFileAccess.hpp>
+#include <o3tl/string_view.hxx>
#include <unotools/tempfile.hxx>
#include <rtl/math.hxx>
#include <svx/charthelper.hxx>
@@ -87,12 +88,12 @@ public:
explicit CheckForChartName( const OUString& rDir ):
aDir(rDir) {}
- bool operator()(const OUString& rName)
+ bool operator()(std::u16string_view rName)
{
- if(!rName.startsWith(aDir))
+ if(!o3tl::starts_with(rName, aDir))
return false;
- if(!rName.endsWith(".xml"))
+ if(!o3tl::ends_with(rName, u".xml"))
return false;
return true;