loplugin:stringviewparam
Change-Id: Id3bd8576b134728140dc68b00eebf78a8f3fd4ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133056 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <string_view>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <basic/sbx.hxx>
|
#include <basic/sbx.hxx>
|
||||||
@@ -483,7 +484,7 @@ struct ProcData {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ErrCode call(
|
ErrCode call(
|
||||||
OUString const & dll, ProcData const & proc, SbxArray * arguments,
|
std::u16string_view dll, ProcData const & proc, SbxArray * arguments,
|
||||||
SbxVariable & result)
|
SbxVariable & result)
|
||||||
{
|
{
|
||||||
if (arguments && arguments->Count() > 20)
|
if (arguments && arguments->Count() > 20)
|
||||||
@@ -497,7 +498,7 @@ ErrCode call(
|
|||||||
// requires special handling in unmarshalString; other functions might
|
// requires special handling in unmarshalString; other functions might
|
||||||
// require similar treatment, too:
|
// require similar treatment, too:
|
||||||
bool special =
|
bool special =
|
||||||
dll.equalsIgnoreAsciiCase("KERNEL32.DLL") &&
|
o3tl::equalsIgnoreAsciiCase(dll, u"KERNEL32.DLL") &&
|
||||||
(proc.name == "GetLogicalDriveStringsA");
|
(proc.name == "GetLogicalDriveStringsA");
|
||||||
for (sal_uInt32 i = 1; i < (arguments == nullptr ? 0 : arguments->Count()); ++i)
|
for (sal_uInt32 i = 1; i < (arguments == nullptr ? 0 : arguments->Count()); ++i)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user