diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index d9cea02c1b8..afb42ed577e 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -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())