CorePlugin: Limit the usage of qMakePair and std::make_pair

Change-Id: Ibf96ca29d2570841955366371f1bab11198b3e67
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2022-09-30 11:53:28 +02:00
parent 5d7c5e21c0
commit 3885b936b6
4 changed files with 6 additions and 6 deletions

View File

@@ -1125,7 +1125,7 @@ void MainWindow::addContextObject(IContext *context)
if (m_contextWidgets.find(widget) != m_contextWidgets.end())
return;
m_contextWidgets.insert(std::make_pair(widget, context));
m_contextWidgets.insert({widget, context});
connect(context, &QObject::destroyed, this, [this, context] { removeContextObject(context); });
}