diff --git a/effects/flipswitch/flipswitch.cpp b/effects/flipswitch/flipswitch.cpp index 03b52a80cd..5f6d0096c9 100644 --- a/effects/flipswitch/flipswitch.cpp +++ b/effects/flipswitch/flipswitch.cpp @@ -805,7 +805,7 @@ void FlipSwitchEffect::selectNextOrPreviousWindow(bool forward) //************************************************************* // 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(); diff --git a/effects/flipswitch/flipswitch.h b/effects/flipswitch/flipswitch.h index 56a5e8b107..e4799883bb 100644 --- a/effects/flipswitch/flipswitch.h +++ b/effects/flipswitch/flipswitch.h @@ -86,7 +86,7 @@ public: 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);