mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 15:44:45 +00:00
LibGUI: Make AbstractView::set_model() take a RefPtr<Model>
Let's face it: Taking RefPtr<T>&& arguments is obnoxious and puts too much unnecessary burden on the caller.
This commit is contained in:
@@ -46,7 +46,7 @@ AbstractView::~AbstractView()
|
||||
{
|
||||
}
|
||||
|
||||
void AbstractView::set_model(RefPtr<Model>&& model)
|
||||
void AbstractView::set_model(RefPtr<Model> model)
|
||||
{
|
||||
if (model == m_model)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user