From 9521ca1e569d4527aa9dea20428f979d3653239e Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 4 Jan 2022 14:00:41 +0100 Subject: [PATCH] Use const'ref here --- src/useractions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useractions.cpp b/src/useractions.cpp index 86c80174a2..4cffd5fd74 100644 --- a/src/useractions.cpp +++ b/src/useractions.cpp @@ -1821,7 +1821,7 @@ bool Workspace::shortcutAvailable(const QKeySequence &cut, AbstractClient* ignor // Check if the shortcut is already registered const QList registeredShortcuts = KGlobalAccel::getGlobalShortcutsByKey(cut); - for (const auto shortcut : registeredShortcuts) { + for (const auto &shortcut : registeredShortcuts) { // Only return "not available" if is not a client activation shortcut, as it may be no longer valid if (!shortcut.uniqueName().startsWith(QStringLiteral("_k_session:"))) { return false;