mirror of
https://github.com/RGBCube/serenity
synced 2026-01-14 18:01:01 +00:00
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. :^)
|
||
|---|---|---|
| .. | ||
| BoardListModel.cpp | ||
| BoardListModel.h | ||
| main.cpp | ||
| Makefile | ||
| ThreadCatalogModel.cpp | ||
| ThreadCatalogModel.h | ||