serenity/Applications/ChanViewer
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
..
BoardListModel.cpp LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
BoardListModel.h AK: Stop allowing implicit downcast with RefPtr and NonnullRefPtr 2020-04-05 11:19:00 +02:00
main.cpp LibGUI: Add MenuBar::add_menu(name) 2020-04-04 12:58:05 +02:00
Makefile LibGfx: Rename from LibDraw :^) 2020-02-06 12:04:00 +01:00
ThreadCatalogModel.cpp LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00
ThreadCatalogModel.h AK: Stop allowing implicit downcast with RefPtr and NonnullRefPtr 2020-04-05 11:19:00 +02:00