From d89feb33b2689e97b4d455302d94ef56f5a9ad3e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 28 Oct 2022 10:01:33 +0300 Subject: [PATCH] Remove some Q_UNUSED It's weird to wrap a return value in Q_UNUSED macro. --- src/virtualdesktops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtualdesktops.cpp b/src/virtualdesktops.cpp index 251cabfa73..322d6f3fbd 100644 --- a/src/virtualdesktops.cpp +++ b/src/virtualdesktops.cpp @@ -791,8 +791,8 @@ void VirtualDesktopManager::initShortcuts() { initSwitchToShortcuts(); - Q_UNUSED(addAction(QStringLiteral("Switch to Next Desktop"), i18n("Switch to Next Desktop"), &VirtualDesktopManager::slotNext)) - Q_UNUSED(addAction(QStringLiteral("Switch to Previous Desktop"), i18n("Switch to Previous Desktop"), &VirtualDesktopManager::slotPrevious)) + addAction(QStringLiteral("Switch to Next Desktop"), i18n("Switch to Next Desktop"), &VirtualDesktopManager::slotNext); + addAction(QStringLiteral("Switch to Previous Desktop"), i18n("Switch to Previous Desktop"), &VirtualDesktopManager::slotPrevious); // shortcuts QAction *slotRightAction = addAction(QStringLiteral("Switch One Desktop to the Right"), i18n("Switch One Desktop to the Right"), &VirtualDesktopManager::slotRight);