Browse Source

Fix const for += operator in string

Timothy Werquin 7 years ago
parent
commit
1a32997a0f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/core/String.hpp
  2. 1 1
      src/core/String.cpp

+ 1 - 1
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;

+ 1 - 1
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
 }