tree-wide: use _contains() rather than _get()/_find()
This commit is contained in:
@@ -2401,7 +2401,7 @@ static int object_added_append_all_prefix(
|
||||
* skip it on any of its parents. The child vtables
|
||||
* always fully override any conflicting vtables of
|
||||
* any parent node. */
|
||||
if (ordered_set_get(s, c->interface))
|
||||
if (ordered_set_contains(s, c->interface))
|
||||
continue;
|
||||
|
||||
r = ordered_set_put(s, c->interface);
|
||||
@@ -2616,7 +2616,7 @@ static int object_removed_append_all_prefix(
|
||||
* skip it on any of its parents. The child vtables
|
||||
* always fully override any conflicting vtables of
|
||||
* any parent node. */
|
||||
if (ordered_set_get(s, c->interface))
|
||||
if (ordered_set_contains(s, c->interface))
|
||||
continue;
|
||||
|
||||
r = node_vtable_get_userdata(bus, path, c, &u, &error);
|
||||
|
||||
Reference in New Issue
Block a user