summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly Thomas <kelly.thomas@hotmail.com.au>2018-09-03 03:33:52 +0800
committerKelly Thomas <kelly.thomas@hotmail.com.au>2018-09-03 03:33:52 +0800
commit3dc0d17c6fffa4d1d825888a0a78766198b9d8bf (patch)
treee02d9e42551322dc8ae67cf0c04d3753d7149448
parent457108924f499b22df2438f12621a1aadbd240f1 (diff)
Change return value of Tree.create_item() from Object to TreeItem
-rw-r--r--doc/classes/Tree.xml2
-rw-r--r--scene/gui/tree.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml
index 5c24df5be2..ae8bdace73 100644
--- a/doc/classes/Tree.xml
+++ b/doc/classes/Tree.xml
@@ -37,7 +37,7 @@
</description>
</method>
<method name="create_item">
- <return type="Object">
+ <return type="TreeItem">
</return>
<argument index="0" name="parent" type="Object" default="null">
</argument>
diff --git a/scene/gui/tree.h b/scene/gui/tree.h
index 5af66c5faa..205cdbfb7e 100644
--- a/scene/gui/tree.h
+++ b/scene/gui/tree.h
@@ -516,7 +516,7 @@ protected:
static void _bind_methods();
//bind helpers
- Object *_create_item(Object *p_parent, int p_idx = -1) {
+ TreeItem *_create_item(Object *p_parent, int p_idx = -1) {
return create_item(Object::cast_to<TreeItem>(p_parent), p_idx);
}