summaryrefslogtreecommitdiff
path: root/chart2/qa/extras
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/qa/extras')
-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;