1
0
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:
qarmin
2019-07-10 11:54:12 +02:00
parent 3bfffcc568
commit 01cc7a996b
42 changed files with 82 additions and 82 deletions

View File

@@ -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()));