forked from qt-creator/qt-creator
Various plugins: Limit the usage of qMakePair
Change-Id: I9113dd47fb4f9026f3a732aebbd0aee31651b727 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2829,8 +2829,7 @@ void CppDebuggerEngine::validateRunParameters(DebuggerRunParameters &rp)
|
||||
if (it.key().startsWith('(')) {
|
||||
const QString expanded = rp.macroExpander->expand(it.value());
|
||||
if (!expanded.isEmpty())
|
||||
globalRegExpSourceMap.push_back(
|
||||
qMakePair(QRegularExpression(it.key()), expanded));
|
||||
globalRegExpSourceMap.push_back({QRegularExpression(it.key()), expanded});
|
||||
}
|
||||
}
|
||||
if (globalRegExpSourceMap.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user