rbutil: Simplify search.

No need to get keys from the map to search a key, we can check directly.

Change-Id: Ia96286e441c3d03864bd7b152065576d26acad87
This commit is contained in:
Dominik Riebeling 2020-10-29 21:05:22 +01:00
parent 2d62f2d017
commit 4594541b5f

View file

@ -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);