Browse Source

Merge pull request #42 from RameshRavone/patch-7

Fixes #41
Thomas Herzog 7 years ago
parent
commit
b32b9422ab
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

@@ -52,7 +52,7 @@ public:
 	String capitalize() const;
 	bool empty() const;
 	bool ends_with(String &text) const;
-	void erase(int position, int chars) const;
+	void erase(int position, int chars);
 	int find(String what, int from = 0) const;
 	int find_last(String what) const;
 	int findn(String what, int from = 0) const;

+ 1 - 1
src/core/String.cpp

@@ -153,7 +153,7 @@ bool String::ends_with(String &p_string) const {
 	return godot_string_ends_with(&_godot_string, &p_string._godot_string);
 }
 
-void String::erase(int position, int chars) const {
+void String::erase(int position, int chars) {
 	godot_string_erase(&_godot_string, position, chars);
 }