summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-09-22 21:24:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-09-22 23:22:54 +0200
commitf8b6d1a2f48ce259ba2e75d41777293dfe23ab11 (patch)
treec5e3fcb2ce9208daf50b37251786114d5f841c54 /lotuswordpro/source
parentExtend loplugin:stringviewparam to starts/endsWith: editeng (diff)
downloadcore-f8b6d1a2f48ce259ba2e75d41777293dfe23ab11.tar.gz
core-f8b6d1a2f48ce259ba2e75d41777293dfe23ab11.zip
Extend loplugin:stringviewparam to starts/endsWith: lotuswordpro
Change-Id: Ia58c031d1157af271c664948946fa5d8d17a2323 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122493 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r--lotuswordpro/source/filter/lwptools.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx
index 254d7fc7f6eb..9af6d1b4ffb3 100644
--- a/lotuswordpro/source/filter/lwptools.cxx
+++ b/lotuswordpro/source/filter/lwptools.cxx
@@ -60,6 +60,7 @@
#include <lwptools.hxx>
#include <rtl/ustrbuf.hxx>
+#include <o3tl/string_view.hxx>
#include <osl/process.h>
#include <osl/thread.h>
#include <osl/file.hxx>
@@ -195,9 +196,9 @@ bool LwpTools::IsUnicodePacked(LwpObjectStream* pObjStrm, sal_uInt16 len)
return false;
}
-bool LwpTools::isFileUrl(const OString &fileName)
+bool LwpTools::isFileUrl(std::string_view fileName)
{
- return fileName.startsWith("file://");
+ return o3tl::starts_with(fileName, "file://");
}
OUString LwpTools::convertToFileUrl(const OString &fileName)