From 3ddd85d9a2be68770e6651d9fc012611d701c626 Mon Sep 17 00:00:00 2001 From: Ramesh Ravone Date: Tue, 3 Oct 2017 20:40:36 +0530 Subject: [PATCH] Fixes #41 --- include/core/String.hpp | 2 +- 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 819a300..43da4a3 100644 --- a/include/core/String.hpp +++ b/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; diff --git a/src/core/String.cpp b/src/core/String.cpp index 2de76b0..c2da228 100644 --- a/src/core/String.cpp +++ b/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); }