diff --git a/Userland/DevTools/HackStudio/ClassViewWidget.cpp b/Userland/DevTools/HackStudio/ClassViewWidget.cpp index da16e72703..d27c5dd3d3 100644 --- a/Userland/DevTools/HackStudio/ClassViewWidget.cpp +++ b/Userland/DevTools/HackStudio/ClassViewWidget.cpp @@ -91,9 +91,9 @@ GUI::ModelIndex ClassViewModel::parent_index(const GUI::ModelIndex& index) const GUI::ModelIndex ClassViewModel::index(int row, int column, const GUI::ModelIndex& parent_index) const { if (!parent_index.is_valid()) - return create_index(row, column, &m_root_scope[row]); + return create_index(row, column, m_root_scope[row].ptr()); auto* parent = static_cast(parent_index.internal_data()); - auto* child = &parent->children[row]; + auto* child = parent->children[row].ptr(); return create_index(row, column, child); }