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:
parent
2d62f2d017
commit
4594541b5f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue