From 4594541b5faa25272880db5606fb11688514edef Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Thu, 29 Oct 2020 21:05:22 +0100 Subject: [PATCH] rbutil: Simplify search. No need to get keys from the map to search a key, we can check directly. Change-Id: Ia96286e441c3d03864bd7b152065576d26acad87 --- rbutil/rbutilqt/base/systeminfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbutil/rbutilqt/base/systeminfo.cpp b/rbutil/rbutilqt/base/systeminfo.cpp index 25ef4a1a42..ed4d78e678 100644 --- a/rbutil/rbutilqt/base/systeminfo.cpp +++ b/rbutil/rbutilqt/base/systeminfo.cpp @@ -203,7 +203,7 @@ QMap SystemInfo::usbIdMap(enum MapType type) if(id == 0) { continue; } - if(map.keys().contains(id)) { + if(map.contains(id)) { l = map.take(id); } l.append(target);