summaryrefslogtreecommitdiffstats
path: root/include/core/String.hpp
diff options
context:
space:
mode:
authorTimothy Werquin <timothy@werquin.com>2018-05-15 22:23:03 +0200
committerTimothy Werquin <timothy@werquin.com>2018-05-15 22:23:03 +0200
commit1803ca43fa912183554857a5da45e695fe8e9645 (patch)
tree3dd3ffe63834aeede96cf7c7ebb43e62f21a6bf2 /include/core/String.hpp
parentd8becfbe903d11294edfa9cda19dc91274605073 (diff)
downloadredot-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.hpp16
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;