From 34cd28aac0c3ef0f2957b86c873f0dea60e5515a Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 13 Apr 2021 12:27:05 +0200 Subject: [PATCH] Debugger: Fix compilation with Qt 6 Amends 7ccd9d694327b44d5033b218273f8e79f644a85c Change-Id: I8567a1238b9cc770c2a5ec551a06ef64a1164a0a Reviewed-by: hjk Reviewed-by: Qt CI Bot --- src/plugins/debugger/debuggerengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())