From 91d89a9840bab882f6d505447ef23d337049dcef Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 14 Jan 2020 18:42:24 +0200 Subject: [PATCH] [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: https://phabricator.kde.org/D26668 --- effects/flipswitch/flipswitch.cpp | 2 +- effects/flipswitch/flipswitch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);