summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/Variant.h
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-03-05 03:02:29 +0100
committerKarroffel <therzog@mail.de>2017-03-05 03:02:29 +0100
commita15e7b7189c7e08ddea10d79d51c2b6db7ad16bb (patch)
treecfafdfb4b78c51ae9623d83b023a12bb01aeafb3 /include/godot_cpp/core/Variant.h
parentedc249647461201db3b3c62cae667521e3a03ee8 (diff)
downloadredot-cpp-a15e7b7189c7e08ddea10d79d51c2b6db7ad16bb.tar.gz
I hate templates
Diffstat (limited to 'include/godot_cpp/core/Variant.h')
-rw-r--r--include/godot_cpp/core/Variant.h6
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;