summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-29 21:05:22 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-29 21:28:28 +0100
commit4594541b5faa25272880db5606fb11688514edef (patch)
tree16027bda2677b6ef6303e50957ecd25e551d6780
parent2d62f2d017cbec7a8f2aeb306b9bae3e695a646a (diff)
downloadrockbox-4594541b5faa25272880db5606fb11688514edef.tar.gz
rockbox-4594541b5faa25272880db5606fb11688514edef.tar.bz2
rockbox-4594541b5faa25272880db5606fb11688514edef.zip
rbutil: Simplify search.
No need to get keys from the map to search a key, we can check directly. Change-Id: Ia96286e441c3d03864bd7b152065576d26acad87
-rw-r--r--rbutil/rbutilqt/base/systeminfo.cpp2
1 files changed, 1 insertions, 1 deletions
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<int, QStringList> 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);