From eebd84b337506c8fff151493f9b51bd127dbc89f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 1 Jun 2021 16:57:14 +0200 Subject: loplugin:stringview (clang-cl) Change-Id: Id1f8f24fec638efcdf5a04ca7253e6f401afd2fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116548 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basic/source/runtime/dllmgr-x64.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'basic') diff --git a/basic/source/runtime/dllmgr-x64.cxx b/basic/source/runtime/dllmgr-x64.cxx index bbffbe51f6c8..8fd83b116440 100644 --- a/basic/source/runtime/dllmgr-x64.cxx +++ b/basic/source/runtime/dllmgr-x64.cxx @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -496,7 +497,7 @@ ErrCode call( // require similar treatment, too: bool special = dll.equalsIgnoreAsciiCase("KERNEL32.DLL") && - (proc.name == OString("GetLogicalDriveStringsA")); + (proc.name == std::string_view("GetLogicalDriveStringsA")); for (sal_uInt32 i = 1; i < (arguments == nullptr ? 0 : arguments->Count()); ++i) { ErrCode e = marshal(true, arguments->Get(i), special && i == 2, stack, stack.size(), -- cgit