Various plugins: Limit the usage of qMakePair

Change-Id: I9113dd47fb4f9026f3a732aebbd0aee31651b727
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-09-30 11:12:51 +02:00
parent 00741a7216
commit 738803a4da
6 changed files with 12 additions and 15 deletions

View File

@@ -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())