summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-04-12 08:29:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-12 12:57:22 +0200
commitc45bc08dc6e64352e11cf632b8ad868c312a62fe (patch)
tree4b665726f2a4ffb556e51915dcc5e2515c21d1b7 /l10ntools
parent08495e24e899c2fd52b9724d993598189e12fc7e (diff)
loplugin:stringview whitelist getLength and isEmpty
Change-Id: I38f3410c0b25ff579879b9de1f266af4d8fd51e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150256 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/xmlparse.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index 30da2bebf509..b3fa97ae00d0 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -29,6 +29,7 @@
#include <iostream>
#include <osl/file.hxx>
#include <osl/process.h>
+#include <o3tl/string_view.hxx>
#include <rtl/ustring.hxx>
#include <rtl/strbuf.hxx>
#include <unicode/regex.h>
@@ -1060,7 +1061,7 @@ bool lcl_isTag( const icu::UnicodeString& rString )
OString XMLUtil::QuotHTML( const OString &rString )
{
- if( rString.trim().isEmpty() )
+ if( o3tl::trim(rString).empty() )
return rString;
UErrorCode nIcuErr = U_ZERO_ERROR;
static const sal_uInt32 nSearchFlags =