diff options
author | Karroffel <therzog@mail.de> | 2017-03-05 03:02:29 +0100 |
---|---|---|
committer | Karroffel <therzog@mail.de> | 2017-03-05 03:02:29 +0100 |
commit | a15e7b7189c7e08ddea10d79d51c2b6db7ad16bb (patch) | |
tree | cfafdfb4b78c51ae9623d83b023a12bb01aeafb3 /include/godot_cpp/core/Variant.h | |
parent | edc249647461201db3b3c62cae667521e3a03ee8 (diff) | |
download | redot-cpp-a15e7b7189c7e08ddea10d79d51c2b6db7ad16bb.tar.gz |
I hate templates
Diffstat (limited to 'include/godot_cpp/core/Variant.h')
-rw-r--r-- | include/godot_cpp/core/Variant.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/godot_cpp/core/Variant.h b/include/godot_cpp/core/Variant.h index 7d4b103..b034906 100644 --- a/include/godot_cpp/core/Variant.h +++ b/include/godot_cpp/core/Variant.h @@ -409,11 +409,7 @@ public: godot_input_event s = godot_variant_as_input_event(&_godot_variant); return *(InputEvent *) &s; } - operator Object*() const - { - godot_object *s = godot_variant_as_object(&_godot_variant); - return (Object *) s; - } + operator Object() const; operator Dictionary() const; operator Array() const; |