Fix compilation error with MSVC 2019 and C++20
Fixes: QTBUG-97425 Change-Id: Id327e3494d1deae852f953211c0409a80beafe88 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit 64e931246484eb36b2b921cdec38263b21167523) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
2fc4a1b530
commit
0f013d3c02
@ -1178,7 +1178,7 @@ void QRegularExpressionPrivate::doMatch(QRegularExpressionMatchPrivate *priv,
|
||||
// its length is zero. We however allow it in input: a QStringView
|
||||
// subject may have data == nullptr. In this case, to keep PCRE
|
||||
// happy, pass a pointer to a dummy character.
|
||||
constexpr char16_t dummySubject = 0;
|
||||
const char16_t dummySubject = 0;
|
||||
const char16_t * const subjectUtf16 = [&]()
|
||||
{
|
||||
const auto subjectUtf16 = priv->subject.utf16();
|
||||
|
Loading…
x
Reference in New Issue
Block a user