mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibGUI: Make GTableModel a retainable object.
It became clear that this class needs to support multiple owners.
This commit is contained in:
@@ -13,7 +13,7 @@ GTableView::~GTableView()
|
||||
{
|
||||
}
|
||||
|
||||
void GTableView::set_model(OwnPtr<GTableModel>&& model)
|
||||
void GTableView::set_model(RetainPtr<GTableModel>&& model)
|
||||
{
|
||||
if (model.ptr() == m_model.ptr())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user