summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qlibrary.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-04-30 14:08:45 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-06-14 01:30:48 +0000
commit4e66c69bad1235d08d82de75d50617ad7d15a3ea (patch)
treed853a2395fcee319bd528b007460948acd800d3f /src/corelib/plugin/qlibrary.cpp
parent1b8b8024554f9f36bc6642c2dfe830765e932df5 (diff)
QLibrary: fix use of deprecated QByteArrayMatcher::indexIn(p, n)
Use the QByteArrayView overload instead. Deprecated since 6.3, so backporting: Pick-to: 6.4 6.3 Change-Id: I529104cad59260eed371cedb1ae84a7e9086bbf6 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/corelib/plugin/qlibrary.cpp')
-rw-r--r--src/corelib/plugin/qlibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index 0cbd54c5bc..6a3f13bb81 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -188,7 +188,7 @@ static QLibraryScanResult qt_find_pattern(const char *s, qsizetype s_len, QStrin
static_assert(pattern == magic);
return qMakeStaticByteArrayMatcher(pattern);
}();
- qsizetype i = matcher.indexIn(s, s_len);
+ qsizetype i = matcher.indexIn({s, s_len});
if (i < 0) {
*errMsg = QLibrary::tr("'%1' is not a Qt plugin").arg(*errMsg);
return QLibraryScanResult{};