mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix error macro calls not ending with semicolon
It's not necessary, but the vast majority of calls of error macros do have an ending semicolon, so it's best to be consistent. Most WARN_DEPRECATED calls did *not* have a semicolon, but there's no reason for them to be treated differently.
This commit is contained in:
@@ -1165,7 +1165,7 @@ void Node::add_child(Node *p_child, bool p_legible_unique_name) {
|
||||
ERR_FAIL_NULL(p_child);
|
||||
|
||||
if (p_child == this) {
|
||||
ERR_EXPLAIN("Can't add child '" + p_child->get_name() + "' to itself.")
|
||||
ERR_EXPLAIN("Can't add child '" + p_child->get_name() + "' to itself.");
|
||||
ERR_FAIL_COND(p_child == this); // adding to itself!
|
||||
}
|
||||
|
||||
@@ -1199,7 +1199,7 @@ void Node::add_child_below_node(Node *p_node, Node *p_child, bool p_legible_uniq
|
||||
if (is_a_parent_of(p_node)) {
|
||||
move_child(p_child, p_node->get_position_in_parent() + 1);
|
||||
} else {
|
||||
WARN_PRINTS("Cannot move under node " + p_node->get_name() + " as " + p_child->get_name() + " does not share a parent.")
|
||||
WARN_PRINTS("Cannot move under node " + p_node->get_name() + " as " + p_child->get_name() + " does not share a parent.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user