You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Use reference to constant in functions
This commit is contained in:
@@ -1759,7 +1759,7 @@ bool Node::has_persistent_groups() const {
|
||||
|
||||
return false;
|
||||
}
|
||||
void Node::_print_tree_pretty(const String prefix, const bool last) {
|
||||
void Node::_print_tree_pretty(const String &prefix, const bool last) {
|
||||
|
||||
String new_prefix = last ? String::utf8(" ┖╴") : String::utf8(" ┠╴");
|
||||
print_line(prefix + new_prefix + String(get_name()));
|
||||
|
||||
Reference in New Issue
Block a user