diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-29 13:46:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 13:46:38 +0100 |
commit | 2f57a11ed9b383706b72783c0d9b1e869774e08a (patch) | |
tree | 1b2b19bbc51b9b6ee71b3d7599092bdaa7b6dbee /scene/gui/graph_edit.cpp | |
parent | 9467350f37089eb3f4ef7de683daba28b0c69dec (diff) | |
parent | 8a0a3acceee804b91afe31022cf0310c01162f73 (diff) |
Merge pull request #55785 from nathanfranke/clang-tidy
Diffstat (limited to 'scene/gui/graph_edit.cpp')
-rw-r--r-- | scene/gui/graph_edit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 2be76473b0..95575a8226 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -1692,8 +1692,9 @@ int GraphEdit::_set_operations(SET_OPERATIONS p_operation, Set<StringName> &r_u, switch (p_operation) { case GraphEdit::IS_EQUAL: { for (Set<StringName>::Element *E = r_u.front(); E; E = E->next()) { - if (!r_v.has(E->get())) + if (!r_v.has(E->get())) { return 0; + } } return r_u.size() == r_v.size(); } break; @@ -1702,8 +1703,9 @@ int GraphEdit::_set_operations(SET_OPERATIONS p_operation, Set<StringName> &r_u, return 1; } for (Set<StringName>::Element *E = r_u.front(); E; E = E->next()) { - if (!r_v.has(E->get())) + if (!r_v.has(E->get())) { return 0; + } } return 1; } break; |