1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:30:59 +00:00
serenity/Userland
Nicholas-Baron c4ede38542 Everything: Add -Wnon-virtual-dtor flag
This flag warns on classes which have `virtual` functions but do not
have a `virtual` destructor.

This patch adds both the flag and missing destructors. The access level
of the destructors was determined by a two rules of thumb:
1. A destructor should have a similar or lower access level to that of a
   constructor.
2. Having a `private` destructor implicitly deletes the default
   constructor, which is probably undesirable for "interface" types
   (classes with only virtual functions and no data).

In short, most of the added destructors are `protected`, unless the
compiler complained about access.
2021-04-15 20:57:13 +02:00
..
Applets Applets: Remove unused UserName applet 2021-04-15 20:38:12 +02:00
Applications Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
Demos LibGfxDemo: Add an elliptic arc next to the Bezier curves 2021-04-15 17:50:16 +02:00
DevTools Everywhere: It's now "Foobar", not "FooBar", and not "foo bar" 2021-04-13 16:58:15 +02:00
DynamicLoader LibC: Add x86_64 Registers 2021-03-21 09:35:23 +01:00
Games Chess: Alt shortcuts and book title capitalization in menus 2021-04-14 21:32:37 +02:00
Libraries Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
Services WindowServer: Clean up some of the code around menu item hovering 2021-04-15 20:50:24 +02:00
Shell Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
Tests LibM: Use fptan/fpatan instead of approximating atan2/tan 2021-04-15 17:50:16 +02:00
Utilities Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
CMakeLists.txt Userland: Rename *.MenuApplet => *.Applet 2021-04-04 16:29:55 +02:00