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:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user