summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-06-25 09:57:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-06-25 13:47:28 +0200
commitfc45cc4899444c218637970ad7537fe7d92077a8 (patch)
tree9de35d28810a6103afd8fe557f0f5fae4e1254d4 /basic
parent8712d2cb78808bd17399605a70862d7920e63c9a (diff)
No need for a std::string_view here
...where proc.name is of type OString. (Following up on eebd84b337506c8fff151493f9b51bd127dbc89f "loplugin:stringview (clang-cl)".) Change-Id: I9e465b431f253d316e8dbff26e6768f5544e91f8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117835 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/dllmgr-x64.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/runtime/dllmgr-x64.cxx b/basic/source/runtime/dllmgr-x64.cxx
index 8fd83b116440..dad4bea8794a 100644
--- a/basic/source/runtime/dllmgr-x64.cxx
+++ b/basic/source/runtime/dllmgr-x64.cxx
@@ -27,7 +27,6 @@
#include <algorithm>
#include <cstddef>
#include <map>
-#include <string_view>
#include <vector>
#include <basic/sbx.hxx>
@@ -497,7 +496,7 @@ ErrCode call(
// require similar treatment, too:
bool special =
dll.equalsIgnoreAsciiCase("KERNEL32.DLL") &&
- (proc.name == std::string_view("GetLogicalDriveStringsA"));
+ (proc.name == "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(),