diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-01-24 09:15:24 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2022-01-24 20:11:23 +0000 |
commit | df0f8e036cdef59d596113c4acb450258aba11d3 (patch) | |
tree | 0d03f6ddd9ab90c9a0bb8cbcafd58265df211783 /src/corelib/text | |
parent | a8f00bf0ad864afc25986c0132d3397d785eb9fe (diff) |
Replace cxx17_bm_searcher config check with feature test macro
This enables the code also for boostrap.
Amends b24e689cb561d81745ff47a5ce4595b809923914.
Pick-to: 6.3
Change-Id: I8efc76c20690282a2428f360d6b93896966b97ee
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/text')
-rw-r--r-- | src/corelib/text/qstring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index a8482c5fbd..437b31089d 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -10564,7 +10564,7 @@ qsizetype QtPrivate::findString(QLatin1String haystack, qsizetype from, QLatin1S return -1; } -#if QT_CONFIG(cxx17_bm_searcher) +#ifdef __cpp_lib_boyer_moore_searcher const auto ciHasher = [](char a) { return latin1Lower[uchar(a)]; }; const auto ciEqual = [](char a, char b) { return latin1Lower[uchar(a)] == latin1Lower[uchar(b)]; |