diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-09-27 11:31:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 11:31:56 +0200 |
commit | 7a693df988c0b520d4a403cd66d5445ba6157179 (patch) | |
tree | 11837daea88f8d6f379cf4abd94d5fb5788c68cb /src/core/String.cpp | |
parent | 0fba89df67a7fe29092a717070d7c0bf3a7e0507 (diff) | |
parent | bba8393af7880a653739befe031246e9d7ff8b9a (diff) | |
download | redot-cpp-7a693df988c0b520d4a403cd66d5445ba6157179.tar.gz |
Merge pull request #601 from colugomusic/fix-string-args-constness
Diffstat (limited to 'src/core/String.cpp')
-rw-r--r-- | src/core/String.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/String.cpp b/src/core/String.cpp index 522f435..ea3f7f1 100644 --- a/src/core/String.cpp +++ b/src/core/String.cpp @@ -222,7 +222,7 @@ String operator+(const wchar_t *a, const String &b) { return String(a) + b; } -bool String::begins_with(String &p_string) const { +bool String::begins_with(const String &p_string) const { return godot::api->godot_string_begins_with(&_godot_string, &p_string._godot_string); } @@ -251,7 +251,7 @@ bool String::empty() const { return godot::api->godot_string_empty(&_godot_string); } -bool String::ends_with(String &p_string) const { +bool String::ends_with(const String &p_string) const { return godot::api->godot_string_ends_with(&_godot_string, &p_string._godot_string); } |