diff options
author | Timothy Werquin <timothy@werquin.com> | 2018-05-15 22:23:03 +0200 |
---|---|---|
committer | Timothy Werquin <timothy@werquin.com> | 2018-05-15 22:23:03 +0200 |
commit | 1803ca43fa912183554857a5da45e695fe8e9645 (patch) | |
tree | 3dd3ffe63834aeede96cf7c7ebb43e62f21a6bf2 /include/core/String.hpp | |
parent | d8becfbe903d11294edfa9cda19dc91274605073 (diff) | |
download | redot-cpp-1803ca43fa912183554857a5da45e695fe8e9645.tar.gz |
Fix String const operators.
Added const to various operators.
Diffstat (limited to 'include/core/String.hpp')
-rw-r--r-- | include/core/String.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/core/String.hpp b/include/core/String.hpp index 7826fcb..9bb0e3e 100644 --- a/include/core/String.hpp +++ b/include/core/String.hpp @@ -49,15 +49,15 @@ public: wchar_t operator[](const int idx) const; void operator=(const String &s); - bool operator==(const String &s); - bool operator!=(const String &s); - String operator+(const String &s); + bool operator==(const String &s) const; + bool operator!=(const String &s) const; + String operator+(const String &s) const; void operator+=(const String &s); - void operator+=(const wchar_t c); - bool operator<(const String &s); - bool operator<=(const String &s); - bool operator>(const String &s); - bool operator>=(const String &s); + void operator+=(const wchar_t c) const; + bool operator<(const String &s) const; + bool operator<=(const String &s) const; + bool operator>(const String &s) const; + bool operator>=(const String &s) const; operator NodePath() const; |