diff options
| author | Nathan Franke <me@nathan.sh> | 2022-01-27 10:34:33 -0600 |
|---|---|---|
| committer | Nathan Franke <me@nathan.sh> | 2022-01-29 04:41:03 -0600 |
| commit | 8a0a3acceee804b91afe31022cf0310c01162f73 (patch) | |
| tree | 7bd0ff57dadd6d26c5d03bd49658c6c4568788c1 /scene/gui/graph_edit.cpp | |
| parent | 01f5d7c616920373ff7d140673bc6f8301213713 (diff) | |
| download | redot-engine-8a0a3acceee804b91afe31022cf0310c01162f73.tar.gz | |
simplify formatting scripts, add a clang-tidy script, and run 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; |
