summaryrefslogtreecommitdiff
blob: 762623d6d4f14d5147582afead6204be35642678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From abe32ec599397bda0ce73471519410bee2c16059 Mon Sep 17 00:00:00 2001
From: Laurent Montel <montel@kde.org>
Date: Sun, 14 Apr 2019 20:15:31 +0200
Subject: Don't use qAsConst over a temporary variable

Summary: BUG: 406426

Reviewers: dfaure

Reviewed By: dfaure

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D20555
---
 src/runtime/component.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/runtime/component.cpp b/src/runtime/component.cpp
index ce276b9..669df67 100644
--- a/src/runtime/component.cpp
+++ b/src/runtime/component.cpp
@@ -330,7 +330,8 @@ bool Component::isShortcutAvailable(
     // context
     if (component==uniqueName())
         {
-        for (GlobalShortcut *sc : qAsConst(shortcutContext(context)->_actions))
+        const auto actions = shortcutContext(context)->_actions;
+        for (GlobalShortcut *sc : actions)
             {
             if (sc->keys().contains(key)) return false;
             }
-- 
cgit v1.1