diff options
Diffstat (limited to 'src/corelib/text/qstring.cpp')
-rw-r--r-- | src/corelib/text/qstring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 80b9653ec9..7a908cfd98 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -10526,8 +10526,8 @@ qsizetype QtPrivate::findString(QLatin1String haystack, qsizetype from, QLatin1S return from; if (cs == Qt::CaseSensitive) { - const QByteArrayMatcher matcher(needle.data(), needle.size()); - return matcher.indexIn(haystack.data(), haystack.size(), from); + const QByteArrayMatcher matcher(needle); + return matcher.indexIn(haystack, from); } // If the needle is sufficiently small we simply iteratively search through |