Use qAsConst
It's available now and much easier to read.
This commit is contained in:
committed by
Chih-Hsuan Yen
parent
106a8966ee
commit
60836291f6
+1
-1
@@ -133,7 +133,7 @@ void Emulation::setScreen(int n)
|
||||
if (_currentScreen != old)
|
||||
{
|
||||
// tell all windows onto this emulation to switch to the newly active screen
|
||||
for(ScreenWindow* window : const_cast<const QList<ScreenWindow*>&>(_windows))
|
||||
for(ScreenWindow* window : qAsConst(_windows))
|
||||
window->setScreen(_currentScreen);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user