From 8a0a3acceee804b91afe31022cf0310c01162f73 Mon Sep 17 00:00:00 2001 From: Nathan Franke Date: Thu, 27 Jan 2022 10:34:33 -0600 Subject: simplify formatting scripts, add a clang-tidy script, and run clang-tidy --- scene/gui/graph_edit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scene/gui/graph_edit.cpp') 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 &r_u, switch (p_operation) { case GraphEdit::IS_EQUAL: { for (Set::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 &r_u, return 1; } for (Set::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; -- cgit v1.2.3