diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-15 15:44:43 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-15 15:44:43 +0100 |
commit | ef5d6ccfb7bf155a238ada79db12ea41ca993116 (patch) | |
tree | bc1acc6c5b0df70661293de0f8d0586ce0808982 /core/string/print_string.cpp | |
parent | 4859f8090f1e21d42bc81313f15367dcb1c4220c (diff) | |
parent | a8bc9f3e78788bdf0be7348fcbfac15c127f1f48 (diff) | |
download | redot-engine-ef5d6ccfb7bf155a238ada79db12ea41ca993116.tar.gz |
Merge pull request #86966 from Muller-Castro/value2ref-core
Add const lvalue ref to `core/*` container parameters
Diffstat (limited to 'core/string/print_string.cpp')
-rw-r--r-- | core/string/print_string.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/string/print_string.cpp b/core/string/print_string.cpp index e3614be359..0f019c405f 100644 --- a/core/string/print_string.cpp +++ b/core/string/print_string.cpp @@ -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(); } |