fix: Clazy detached QVector warning [clazy-range-loop]
warning: c++11 range-loop might detach Qt container (QVector) [clazy- range-loop]
This commit is contained in:
parent
071920418d
commit
c0d724b538
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ VirtualDesktopPolicy::VirtualDesktopPolicy(Xkb *xkb, KeyboardLayout *layout, con
|
||||||
[this, xkb] (const QString &name) {
|
[this, xkb] (const QString &name) {
|
||||||
Q_UNUSED(name)
|
Q_UNUSED(name)
|
||||||
if (xkb->numberOfLayouts() > 1) {
|
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(
|
const uint layout = m_config.readEntry(
|
||||||
defaultLayoutEntryKey() %
|
defaultLayoutEntryKey() %
|
||||||
QLatin1String( QByteArray::number(desktop->x11DesktopNumber()) ),
|
QLatin1String( QByteArray::number(desktop->x11DesktopNumber()) ),
|
||||||
|
|
Loading…
Reference in a new issue