Use qAsConst

It's available now and much easier to read.
This commit is contained in:
Luís Pereira
2020-06-02 15:53:51 +00:00
committed by Chih-Hsuan Yen
parent 106a8966ee
commit 60836291f6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}
}