Skip to content

Commit add4c99

Browse files
authored
Merge pull request #17 from RameshRavone/master
String operator_plus fix
2 parents a3bcda9 + 36561b5 commit add4c99

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/core/Godot.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,14 @@ class GodotScript {
5050
#define GODOT_NATIVE_TERMINATE(arg) extern "C" void GD_EXPORT godot_native_terminate(arg)
5151

5252

53-
5453
#define GODOT_CLASS(Name) \
5554
public: inline static char *___get_type_name() { return (char *) #Name; } \
5655
private:
5756

5857
#define GODOT_SUBCLASS(Name, Base) \
5958
public: inline static char *___get_type_name() { return (char *) #Name; } \
6059
inline static char *___get_base_type_name() { return (char *) #Base; } \
61-
inline Name(godot_object *o) : Base(o) {} \
60+
//inline Name(godot_object *o) : Base(o) {} \
6261
private:
6362

6463

src/core/String.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ bool String::operator !=(const String &s)
8484
String String::operator +(const String &s)
8585
{
8686
String new_string = *this;
87-
godot_string_operator_plus(&new_string._godot_string, &s._godot_string);
87+
new_string._godot_string = godot_string_operator_plus(&new_string._godot_string, &s._godot_string);
8888

8989
return new_string;
9090
}
9191

9292
void String::operator +=(const String &s)
9393
{
94-
godot_string_operator_plus(&_godot_string, &s._godot_string);
94+
_godot_string = godot_string_operator_plus(&_godot_string, &s._godot_string);
9595
}
9696

9797
void String::operator +=(const wchar_t c)

0 commit comments

Comments
 (0)