Drop Qt foreach.

Replaced with the ranged-for loop.
Using QT_NO_FOREACH to enforce it.
Qt 5.7.1 required.
This commit is contained in:
Luís Pereira
2017-12-28 12:37:29 +00:00
committed by Alf Gaida
parent acf6556712
commit ba85185c40
5 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ void Emulation::setScreen(int n)
if (_currentScreen != old)
{
// tell all windows onto this emulation to switch to the newly active screen
foreach(ScreenWindow* window,_windows)
for(ScreenWindow* window : const_cast<const QList<ScreenWindow*>&>(_windows))
window->setScreen(_currentScreen);
}
}