diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-09-23 14:34:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-09-23 15:29:24 +0200 |
commit | 14713f91393abe4ec76ad28bdc45eaced943cd72 (patch) | |
tree | 09a100b3424ecf0dca85c4730024bb31f4dcf762 /chart2/qa/extras | |
parent | 3f5610feb68fc94f9a8f58ee48fac4fbf687b506 (diff) |
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/extras')
-rw-r--r-- | chart2/qa/extras/charttest.hxx | 7 |
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; |