serenity/Libraries
Andreas Kling 1d468ed6d3 AK: Stop allowing implicit downcast with RefPtr and NonnullRefPtr
We were allowing this dangerous kind of thing:

RefPtr<Base> base;
RefPtr<Derived> derived = base;

This patch changes the {Nonnull,}RefPtr constructors so this is no
longer possible.

To downcast one of these pointers, there is now static_ptr_cast<T>:

RefPtr<Derived> derived = static_ptr_cast<Derived>(base);

Fixing this exposed a ton of cowboy-downcasts in various places,
which we're now forced to fix. :^)
2020-04-05 11:19:00 +02:00
..
LibAudio Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller 2020-03-08 13:06:51 +01:00
LibBareMetal ACPI: Examine bit width in Generic address structure before asserting 2020-03-12 12:36:38 +01:00
LibC Kernel: Add the SO_BINDTODEVICE socket option 2020-04-05 09:50:48 +02:00
LibCore LibCore: Fix UDPServer up to properly receive data 2020-04-04 12:25:33 +02:00
LibELF AK: Reduce header dependency graph of String.h 2020-03-23 13:48:44 +01:00
LibGfx LibGfx: Add Painter::blit_filtered() and blit_brightened() 2020-03-30 19:39:37 +02:00
LibGUI LibGUI: Add MenuBar::add_menu(name) 2020-04-04 12:58:05 +02:00
LibIPC LibIPC+LibGfx: Pass the IPC::Decoder to decoding helpers 2020-03-29 19:37:23 +02:00
LibJS AK: Stop allowing implicit downcast with RefPtr and NonnullRefPtr 2020-04-05 11:19:00 +02:00
LibLine LibLine: Restore previous state only if initialized 2020-04-02 08:49:11 +02:00
LibM LibM: Implement floating point variants of various math functions 2020-02-25 20:48:42 +01:00
LibMarkdown Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller 2020-03-08 13:06:51 +01:00
LibPCIDB
LibProtocol ProtocolServer+LibProtocol: Reject unhandled URLs instead of asserting 2020-04-04 20:01:36 +02:00
LibPthread Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller 2020-03-08 13:06:51 +01:00
LibThread LibThread: Fix destroying background actions 2020-02-25 10:17:31 +01:00
LibVT LibVT: Don't scroll-to-bottom when pressing the Logo key 2020-03-30 13:15:47 +02:00
LibWeb AK: Stop allowing implicit downcast with RefPtr and NonnullRefPtr 2020-04-05 11:19:00 +02:00
Makefile Build: Only look at SUBDIRS with Makefiles 2020-02-25 19:56:48 +01:00