1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27:35 +00:00

LibCore+LibGUI: Make ObjectClassRegistration::construct() nullable

This lays the groundwork for allowing the registration of abstract
core objects, which will be needed for improved GML autocomplete.
This commit is contained in:
thislooksfun 2021-10-25 20:19:28 -05:00 committed by Andreas Kling
parent 0e537e2e1f
commit c3b0b9057e
3 changed files with 14 additions and 12 deletions

View file

@ -258,7 +258,7 @@ static HashMap<StringView, ObjectClassRegistration*>& object_classes()
return *map;
}
ObjectClassRegistration::ObjectClassRegistration(StringView class_name, Function<NonnullRefPtr<Object>()> factory, ObjectClassRegistration* parent_class)
ObjectClassRegistration::ObjectClassRegistration(StringView class_name, Function<RefPtr<Object>()> factory, ObjectClassRegistration* parent_class)
: m_class_name(class_name)
, m_factory(move(factory))
, m_parent_class(parent_class)