summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-04-30 14:08:45 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-14 01:31:04 +0000
commitff54eed29242fade7774cc1a954ec83182c14535 (patch)
tree7f670e07796b21819804d0bab76ba00264dbbe6d /src/corelib
parenteb545512b259065a4be7dc9c4ab9be57212c89f2 (diff)
QLibrary: fix use of deprecated QByteArrayMatcher::indexIn(p, n)
Use the QByteArrayView overload instead. Deprecated since 6.3, so backporting: Change-Id: I529104cad59260eed371cedb1ae84a7e9086bbf6 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> (cherry picked from commit 4e66c69bad1235d08d82de75d50617ad7d15a3ea) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib')
-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{};