diff options
| author | Colugo <68328892+colugomusic@users.noreply.github.com> | 2021-08-22 16:02:14 +0100 |
|---|---|---|
| committer | Colugo <68328892+colugomusic@users.noreply.github.com> | 2021-08-22 16:02:14 +0100 |
| commit | bba8393af7880a653739befe031246e9d7ff8b9a (patch) | |
| tree | 1d30fff20d9de295d8068e5b4c187c3b88f27133 /include/core | |
| parent | b56df8f6da7cfab96df186794d14fc2c923fb3f7 (diff) | |
| download | redot-cpp-bba8393af7880a653739befe031246e9d7ff8b9a.tar.gz | |
Fix argument constness in String::begins_with, String::ends_with
Diffstat (limited to 'include/core')
| -rw-r--r-- | include/core/String.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/String.hpp b/include/core/String.hpp index 2dea845..70ddf14 100644 --- a/include/core/String.hpp +++ b/include/core/String.hpp @@ -75,14 +75,14 @@ public: CharString utf8() const; CharString ascii(bool p_extended = false) const; - bool begins_with(String &s) const; + bool begins_with(const String &s) const; bool begins_with_char_array(const char *p_char_array) const; PoolStringArray bigrams() const; String c_escape() const; String c_unescape() const; String capitalize() const; bool empty() const; - bool ends_with(String &text) const; + bool ends_with(const String &text) const; void erase(int position, int chars); int find(String what, int from = 0) const; int find_last(String what) const; |
