diff options
Diffstat (limited to 'editor/dependency_editor.cpp')
-rw-r--r-- | editor/dependency_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/dependency_editor.cpp b/editor/dependency_editor.cpp index 3533c0993f..78773ce3a6 100644 --- a/editor/dependency_editor.cpp +++ b/editor/dependency_editor.cpp @@ -50,7 +50,7 @@ void DependencyEditor::_searched(const String &p_path) { void DependencyEditor::_load_pressed(Object *p_item, int p_cell, int p_button) { - TreeItem *ti = p_item->cast_to<TreeItem>(); + TreeItem *ti = Object::cast_to<TreeItem>(p_item); String fname = ti->get_text(0); replacing = ti->get_text(1); @@ -626,7 +626,7 @@ void OrphanResourcesDialog::_delete_confirm() { void OrphanResourcesDialog::_button_pressed(Object *p_item, int p_column, int p_id) { - TreeItem *ti = p_item->cast_to<TreeItem>(); + TreeItem *ti = Object::cast_to<TreeItem>(p_item); String path = ti->get_metadata(0); dep_edit->edit(path); |