1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Add const lvalue ref to core/* container parameters

This commit is contained in:
Muller-Castro
2024-01-08 22:36:19 -03:00
parent 907db8eebc
commit a8bc9f3e78
92 changed files with 346 additions and 346 deletions

View File

@@ -68,7 +68,7 @@ void remove_print_handler(const PrintHandlerList *p_handler) {
ERR_FAIL_NULL(l);
}
void __print_line(String p_string) {
void __print_line(const String &p_string) {
if (!CoreGlobals::print_line_enabled) {
return;
}
@@ -85,7 +85,7 @@ void __print_line(String p_string) {
_global_unlock();
}
void __print_line_rich(String p_string) {
void __print_line_rich(const String &p_string) {
if (!CoreGlobals::print_line_enabled) {
return;
}
@@ -178,7 +178,7 @@ void __print_line_rich(String p_string) {
_global_unlock();
}
void print_error(String p_string) {
void print_error(const String &p_string) {
if (!CoreGlobals::print_error_enabled) {
return;
}
@@ -199,6 +199,6 @@ bool is_print_verbose_enabled() {
return OS::get_singleton()->is_stdout_verbose();
}
String stringify_variants(Variant p_var) {
String stringify_variants(const Variant &p_var) {
return p_var.operator String();
}