Remove some Q_UNUSED

It's weird to wrap a return value in Q_UNUSED macro.
This commit is contained in:
Vlad Zahorodnii 2022-10-28 10:01:33 +03:00
parent 57eb60122b
commit d89feb33b2

View file

@ -791,8 +791,8 @@ void VirtualDesktopManager::initShortcuts()
{ {
initSwitchToShortcuts(); initSwitchToShortcuts();
Q_UNUSED(addAction(QStringLiteral("Switch to Next Desktop"), i18n("Switch to Next Desktop"), &VirtualDesktopManager::slotNext)) 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 Previous Desktop"), i18n("Switch to Previous Desktop"), &VirtualDesktopManager::slotPrevious);
// shortcuts // shortcuts
QAction *slotRightAction = addAction(QStringLiteral("Switch One Desktop to the Right"), i18n("Switch One Desktop to the Right"), &VirtualDesktopManager::slotRight); QAction *slotRightAction = addAction(QStringLiteral("Switch One Desktop to the Right"), i18n("Switch One Desktop to the Right"), &VirtualDesktopManager::slotRight);