diff options
author | Karroffel <therzog@mail.de> | 2017-03-18 15:23:28 +0100 |
---|---|---|
committer | Karroffel <therzog@mail.de> | 2017-03-18 15:23:28 +0100 |
commit | 7fa7f7b9c5d5999a5c626a77b1a9b22da6f009b9 (patch) | |
tree | ff6610df8b430d445726f7ee94072e91f80bf5e9 /include/godot_cpp/core/String.cpp | |
parent | 80e3e74934426c9fc87906096cbd53efcc316b19 (diff) | |
download | redot-cpp-7fa7f7b9c5d5999a5c626a77b1a9b22da6f009b9.tar.gz |
added operator overload for string
Diffstat (limited to 'include/godot_cpp/core/String.cpp')
-rw-r--r-- | include/godot_cpp/core/String.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/godot_cpp/core/String.cpp b/include/godot_cpp/core/String.cpp index c3c78e4..af83f2e 100644 --- a/include/godot_cpp/core/String.cpp +++ b/include/godot_cpp/core/String.cpp @@ -66,6 +66,11 @@ int String::length() const return len; } +void String::operator =(const String &s) +{ + godot_string_copy_string(&_godot_string, &s._godot_string); +} + bool String::operator ==(const String &s) { return godot_string_operator_equal(&_godot_string, &s._godot_string); |