Commit c0d724b5 authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

fix: Clazy detached QVector warning [clazy-range-loop]

warning: c++11 range-loop might detach Qt container (QVector) [clazy-
parent 07192041
......@@ -126,7 +126,8 @@ VirtualDesktopPolicy::VirtualDesktopPolicy(Xkb *xkb, KeyboardLayout *layout, con
[this, xkb] (const QString &name) {
if (xkb->numberOfLayouts() > 1) {
for (KWin::VirtualDesktop* const desktop : VirtualDesktopManager::self()->desktops()) {
const auto &desktops = VirtualDesktopManager::self()->desktops();
for (KWin::VirtualDesktop* const desktop : desktops) {
const uint layout = m_config.readEntry(
defaultLayoutEntryKey() %
QLatin1String( QByteArray::number(desktop->x11DesktopNumber()) ),
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