Debugger: Fix compilation with Qt 6

Amends 7ccd9d6943

Change-Id: I8567a1238b9cc770c2a5ec551a06ef64a1164a0a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2021-04-13 12:27:05 +02:00
parent 82bb6a3c72
commit 34cd28aac0

View File

@@ -2824,7 +2824,8 @@ void CppDebuggerEngine::validateRunParameters(DebuggerRunParameters &rp)
if (it.key().startsWith('(')) {
const QString expanded = Utils::globalMacroExpander()->expand(it.value());
if (!expanded.isEmpty())
globalRegExpSourceMap.push_back(qMakePair(it.key(), expanded));
globalRegExpSourceMap.push_back(
qMakePair(QRegularExpression(it.key()), expanded));
}
}
if (globalRegExpSourceMap.isEmpty())