summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GWidget.cpp
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2019-12-21 15:54:13 -0700
committerAndreas Kling <awesomekling@gmail.com>2019-12-22 10:47:39 +0100
commit7edfdca4b28da8ea8a36ede7e9cf2fd2bc945e52 (patch)
tree8090af3cf09f8ff080f8c5c439efbe36929e4462 /Libraries/LibGUI/GWidget.cpp
parent824bbc7462290e4eb1c527c6f185438c357a11aa (diff)
downloadserenity-7edfdca4b28da8ea8a36ede7e9cf2fd2bc945e52.zip
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.
Diffstat (limited to 'Libraries/LibGUI/GWidget.cpp')
-rw-r--r--Libraries/LibGUI/GWidget.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GWidget.cpp b/Libraries/LibGUI/GWidget.cpp
index 67ac897a2a..9dcaf7cdce 100644
--- a/Libraries/LibGUI/GWidget.cpp
+++ b/Libraries/LibGUI/GWidget.cpp
@@ -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)