ProjectExplorer: Use qAsConst w/ non-const Qt containers in range-loops

Change-Id: I6422b3e40a6925504a231be2d47b3214d86c6e06
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Alessandro Portale
2021-02-16 22:43:21 +01:00
parent e4f260d544
commit afc2fda8a9
15 changed files with 30 additions and 30 deletions

View File

@@ -754,7 +754,7 @@ void AppOutputPane::slotRunControlFinished()
{
auto *rc = qobject_cast<RunControl *>(sender());
QTimer::singleShot(0, this, [this, rc]() { slotRunControlFinished2(rc); });
for (const RunControlTab &t : m_runControlTabs) {
for (const RunControlTab &t : qAsConst(m_runControlTabs)) {
if (t.runControl == rc) {
t.window->flush();
break;