forked from qt-creator/qt-creator
ProjectExplorer: Remove foreach / Q_FOREACH usage part 3
Task-number: QTCREATORBUG-27464 Change-Id: Iab4740dd2f475febf7532f0a02407b0088d54068 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
using namespace ProjectExplorer;
|
||||
using namespace ProjectExplorer::Internal;
|
||||
|
||||
WaitForStopDialog::WaitForStopDialog(QList<ProjectExplorer::RunControl *> runControls) :
|
||||
m_runControls(runControls)
|
||||
WaitForStopDialog::WaitForStopDialog(const QList<ProjectExplorer::RunControl *> &runControls)
|
||||
: m_runControls(runControls)
|
||||
{
|
||||
setWindowTitle(tr("Waiting for Applications to Stop"));
|
||||
|
||||
@@ -53,7 +53,7 @@ WaitForStopDialog::WaitForStopDialog(QList<ProjectExplorer::RunControl *> runCon
|
||||
|
||||
updateProgressText();
|
||||
|
||||
foreach (RunControl *rc, runControls)
|
||||
for (const RunControl *rc : runControls)
|
||||
connect(rc, &RunControl::stopped, this, &WaitForStopDialog::runControlFinished);
|
||||
|
||||
m_timer.start();
|
||||
|
||||
Reference in New Issue
Block a user