From c45bc08dc6e64352e11cf632b8ad868c312a62fe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 12 Apr 2023 08:29:04 +0200 Subject: 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 --- xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmlhelp/source/cxxhelp') diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx index 80badde4bcb3..b598c241e75e 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx @@ -291,7 +291,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< uno::XComponentConte pCurrentVectorIndex.reset(); aIndexFolderResultVectorVector.clear(); - sal_Int32 replIdx = OUString( "#HLP#" ).getLength(); + sal_Int32 replIdx = strlen( "#HLP#" ); OUString replWith = "vnd.sun.star.help://"; int nResultCount = aCompleteResultVector.size(); -- cgit