Verified Commit 72179b9b authored by Fushan Wen's avatar Fushan Wen
Browse files

shell/shellcorona: Use const List in for loop

parent 745e2c08
Pipeline #140342 passed with stage
in 7 minutes and 48 seconds
......@@ -1287,7 +1287,7 @@ void ShellCorona::addOutput(QScreen *screen)
if (isOutputFake(screen)) {
return;
}
for (auto desk : m_desktopViewforId.values()) {
for (const auto desk : std::as_const(m_desktopViewforId)) {
if (desk->screenToFollow() == screen) {
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment