diff options
author | Timothy Werquin <timothy@werquin.com> | 2018-05-15 22:24:53 +0200 |
---|---|---|
committer | Timothy Werquin <timothy@werquin.com> | 2018-05-15 22:24:53 +0200 |
commit | 1a32997a0f877b1411bdf39c53f52b491285026c (patch) | |
tree | 8ac6d239f0d036057892caca2ae342faa37b54ee | |
parent | 1803ca43fa912183554857a5da45e695fe8e9645 (diff) | |
download | redot-cpp-1a32997a0f877b1411bdf39c53f52b491285026c.tar.gz |
Fix const for += operator in string
-rw-r--r-- | include/core/String.hpp | 2 | ||||
-rw-r--r-- | src/core/String.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/core/String.hpp b/include/core/String.hpp index 9bb0e3e..ff3a307 100644 --- a/include/core/String.hpp +++ b/include/core/String.hpp @@ -53,7 +53,7 @@ public: bool operator!=(const String &s) const; String operator+(const String &s) const; void operator+=(const String &s); - void operator+=(const wchar_t c) const; + void operator+=(const wchar_t c); bool operator<(const String &s) const; bool operator<=(const String &s) const; bool operator>(const String &s) const; diff --git a/src/core/String.cpp b/src/core/String.cpp index 7cbc090..f85fa04 100644 --- a/src/core/String.cpp +++ b/src/core/String.cpp @@ -134,7 +134,7 @@ void String::operator+=(const String &s) { _godot_string = godot::api->godot_string_operator_plus(&_godot_string, &s._godot_string); } -void String::operator+=(const wchar_t c) const { +void String::operator+=(const wchar_t c) { // @Todo } |