Commit c562bf65 authored by Marius Pa's avatar Marius Pa
Browse files

virtualdesktopswitch improve readability

Now it is more evident what is the type of T in
"template<typename T> T readEntry".
Silences PVS-Studio issue "VirtualDesktopSwitchPlugin.cpp:61:
error: V503 This is a nonsensical comparison: pointer >= 0".
parent 6b9a3766
Pipeline #208166 passed with stage
in 59 seconds
......@@ -54,7 +54,7 @@ void VirtualDesktopSwitchPlugin::currentActivityChanged(const QString &activity)
const auto desktopId = config().readEntry(configPattern.arg(activity), -1);
const int desktopId = config().readEntry(configPattern.arg(activity), -1);
if (KWindowSystem::isPlatformX11()) {
config().writeEntry(configPattern.arg(m_currentActivity), QString::number(KWindowSystem::currentDesktop()));
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