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
..
2020-03-29 00:37:33 +01:00
2020-03-29 00:37:33 +01:00
2020-04-04 22:28:21 +02:00
2020-04-04 22:28:21 +02:00
2020-04-04 22:28:21 +02:00
2020-03-28 23:10:37 +01:00
2020-03-16 14:37:19 +01:00
2020-04-02 15:24:50 +02:00
2020-04-01 22:38:59 +02:00
2020-03-28 23:10:37 +01:00
2020-03-30 14:11:54 +02:00
2020-03-31 21:19:21 +02:00
2020-04-04 12:58:05 +02:00
2020-04-01 20:18:36 +02:00
2020-04-04 12:58:05 +02:00
2020-03-30 21:43:35 +02:00
2020-03-24 16:14:10 +01:00
2020-03-24 16:14:10 +01:00
2020-04-01 20:47:37 +02:00
2020-04-01 20:47:37 +02:00
2020-04-04 12:58:05 +02:00
2020-04-03 09:07:05 +02:00
2020-03-24 22:21:58 +01:00
2020-03-24 22:21:58 +01:00
2020-04-04 15:58:49 +02:00
2020-04-01 20:18:36 +02:00
2020-04-04 15:58:49 +02:00
2020-04-04 15:58:49 +02:00
2020-04-04 15:58:49 +02:00
2020-04-04 15:58:49 +02:00
2020-04-04 22:28:21 +02:00
2020-04-01 18:57:00 +02:00
2020-04-05 10:56:23 +02:00
2020-04-05 10:56:23 +02:00
2020-04-01 20:18:36 +02:00
2020-04-01 20:18:36 +02:00
2020-03-29 00:37:33 +01:00
2020-03-29 00:37:33 +01:00
2020-04-04 23:13:13 +02:00
2020-04-04 23:13:13 +02:00
2020-04-04 23:13:13 +02:00
2020-04-04 23:13:13 +02:00
2020-04-04 15:58:49 +02:00
2020-04-04 15:58:49 +02:00
2020-04-04 15:58:49 +02:00
2020-04-01 20:18:36 +02:00
2020-04-04 15:58:49 +02:00
2020-03-28 23:10:37 +01:00
2020-04-04 12:58:05 +02:00
2020-04-04 12:58:05 +02:00
2020-04-05 11:19:00 +02:00
2020-04-05 11:19:00 +02:00
2020-04-02 19:32:21 +02:00
2020-04-02 19:32:21 +02:00
2020-03-16 14:37:19 +01:00
2020-03-16 14:37:19 +01:00
2020-04-04 23:44:29 +02:00
2020-04-04 23:44:29 +02:00
2020-04-05 10:38:13 +02:00
2020-04-04 21:17:34 +02:00