Simplify signature of Component::run

We don't need to pass the root item anymore since ComponentVTable
has now get_item_ref.
This commit is contained in:
Simon Hausmann 2020-11-11 15:55:03 +01:00
parent 94ed0ae1d1
commit 02904c4014
7 changed files with 17 additions and 16 deletions

View file

@ -84,7 +84,7 @@ struct ComponentWindow
void run(const Component *c) const
{
sixtyfps_component_window_run(
&inner, vtable::VRefMut<ComponentVTable> { &Component::component_type, const_cast<Component *>(c) }, c->root_item());
&inner, vtable::VRefMut<ComponentVTable> { &Component::component_type, const_cast<Component *>(c) });
}
float scale_factor() const { return sixtyfps_component_window_get_scale_factor(&inner); }