You've already forked godot
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user