tree-wide: use _contains() rather than _get()/_find()

This commit is contained in:
Yu Watanabe
2026-03-02 23:10:22 +09:00
parent 8b3d3d6d67
commit 4b4eba1666
14 changed files with 56 additions and 56 deletions
+2 -2
View File
@@ -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);