1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-13 13:41:01 +00:00
serenity/Kernel/Graphics
Daniel Bertalan d7b6cc6421 Everywhere: Prevent risky implicit casts of (Nonnull)RefPtr
Our existing implementation did not check the element type of the other
pointer in the constructors and move assignment operators. This meant
that some operations that would require explicit casting on raw pointers
were done implicitly, such as:
- downcasting a base class to a derived class (e.g. `Kernel::Inode` =>
  `Kernel::ProcFSDirectoryInode` in Kernel/ProcFS.cpp),
- casting to an unrelated type (e.g. `Promise<bool>` => `Promise<Empty>`
  in LibIMAP/Client.cpp)

This, of course, allows gross violations of the type system, and makes
the need to type-check less obvious before downcasting. Luckily, while
adding the `static_ptr_cast`s, only two truly incorrect usages were
found; in the other instances, our casts just needed to be made
explicit.
2021-09-03 23:20:23 +02:00
..
Bochs Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
Console Kernel: Rename ScopedSpinlock => SpinlockLocker 2021-08-22 03:34:10 +02:00
Intel Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
VirtIOGPU Kernel/VirtIO: Remove redundant VirtIO word from filenames 2021-08-31 16:51:13 +02:00
Definitions.h Kernel/Graphics: Add basic support for Intel native accelerator 2021-05-16 19:58:33 +02:00
FramebufferDevice.cpp Kernel: Rename ScopedSpinlock => SpinlockLocker 2021-08-22 03:34:10 +02:00
FramebufferDevice.h Kernel: Rename SpinLock => Spinlock 2021-08-22 03:34:10 +02:00
GraphicsDevice.h Kernel: Simplify graphics initialization somewhat 2021-07-03 16:28:49 +02:00
GraphicsManagement.cpp Everywhere: Prevent risky implicit casts of (Nonnull)RefPtr 2021-09-03 23:20:23 +02:00
GraphicsManagement.h Kernel: Rename SpinLock => Spinlock 2021-08-22 03:34:10 +02:00
VGACompatibleAdapter.cpp Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
VGACompatibleAdapter.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00