From 3dc0d17c6fffa4d1d825888a0a78766198b9d8bf Mon Sep 17 00:00:00 2001 From: Kelly Thomas Date: Mon, 3 Sep 2018 03:33:52 +0800 Subject: [PATCH] Change return value of Tree.create_item() from Object to TreeItem --- doc/classes/Tree.xml | 2 +- scene/gui/tree.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml index 5c24df5be2f..ae8bdace735 100644 --- a/doc/classes/Tree.xml +++ b/doc/classes/Tree.xml @@ -37,7 +37,7 @@ - + diff --git a/scene/gui/tree.h b/scene/gui/tree.h index 5af66c5faa9..205cdbfb7e8 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(p_parent), p_idx); }