1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 16:45:08 +00:00

LibGUI: Don't assert in ~GWidgetClassRegistration

These guys are all declared as globals, and their ASSERT_NOT_REACHED
in the destructor doesn't play nice with __cxa_atexit. As in, every
application will assert in __cxa_finalize if this assert isn't removed.
This commit is contained in:
Andrew Kaster 2019-12-21 15:54:13 -07:00 committed by Andreas Kling
parent 824bbc7462
commit 7edfdca4b2

View file

@ -50,7 +50,6 @@ GWidgetClassRegistration::GWidgetClassRegistration(const String& class_name, Fun
GWidgetClassRegistration::~GWidgetClassRegistration()
{
ASSERT_NOT_REACHED();
}
void GWidgetClassRegistration::for_each(Function<void(const GWidgetClassRegistration&)> callback)