forked from qt-creator/qt-creator
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:
@@ -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); });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user