diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-06-01 16:57:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-06-01 23:00:26 +0200 |
commit | eebd84b337506c8fff151493f9b51bd127dbc89f (patch) | |
tree | 45284084864d587e245d6f5eaa1b19b546ec1dd5 /basic | |
parent | 1193c331945481dd155a55c6695ff6fd88bd3d10 (diff) |
loplugin:stringview (clang-cl)
Change-Id: Id1f8f24fec638efcdf5a04ca7253e6f401afd2fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116548
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/dllmgr-x64.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <algorithm> #include <cstddef> #include <map> +#include <string_view> #include <vector> #include <basic/sbx.hxx> @@ -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(), |