diff --git a/effects/flipswitch/flipswitch.h b/effects/flipswitch/flipswitch.h --- a/effects/flipswitch/flipswitch.h +++ b/effects/flipswitch/flipswitch.h @@ -86,7 +86,7 @@ private Q_SLOTS: void toggleActiveCurrent(); void toggleActiveAllDesktops(); - void globalShortcutChanged(QAction *action, QKeySequence shortcut); + void globalShortcutChanged(QAction *action, const QKeySequence &shortcut); void slotWindowAdded(KWin::EffectWindow* w); void slotWindowClosed(KWin::EffectWindow *w); void slotTabBoxAdded(int mode); diff --git a/effects/flipswitch/flipswitch.cpp b/effects/flipswitch/flipswitch.cpp --- a/effects/flipswitch/flipswitch.cpp +++ b/effects/flipswitch/flipswitch.cpp @@ -805,7 +805,7 @@ //************************************************************* // Keyboard handling //************************************************************* -void FlipSwitchEffect::globalShortcutChanged(QAction *action, QKeySequence shortcut) +void FlipSwitchEffect::globalShortcutChanged(QAction *action, const QKeySequence &shortcut) { if (action->objectName() == QStringLiteral("FlipSwitchAll")) { m_shortcutAll.clear();