Commit 91d89a98 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[effects/flipswitch] Add a const ref

Summary: Add a const reference to match prototype of KGlobalAccel::globalShortcutChanged.

Test Plan: Compiles.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent 55b49120
......@@ -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")) {
......@@ -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);
Markdown is supported
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