kernel: Add missing override specifiers

Over the course of the kernel refactoring a tiny bit of missing
overrides slipped through review, so we can add these.

While we're at it, we can remove redundant virtual keywords where
applicable as well.
This commit is contained in:
Lioncash 2021-05-29 02:49:07 -04:00
parent cd96d8f2c1
commit a9fcaa9c00
15 changed files with 48 additions and 53 deletions

View file

@ -20,23 +20,21 @@ class KEvent final : public KAutoObjectWithSlabHeapAndContainer<KEvent, KAutoObj
public:
explicit KEvent(KernelCore& kernel_);
virtual ~KEvent();
~KEvent() override;
void Initialize(std::string&& name);
virtual void Finalize() override;
void Finalize() override;
virtual bool IsInitialized() const override {
bool IsInitialized() const override {
return initialized;
}
virtual uintptr_t GetPostDestroyArgument() const override {
uintptr_t GetPostDestroyArgument() const override {
return reinterpret_cast<uintptr_t>(owner);
}
static void PostDestroy(uintptr_t arg);
virtual KProcess* GetOwner() const override {
KProcess* GetOwner() const override {
return owner;
}
@ -48,6 +46,8 @@ public:
return writable_event;
}
static void PostDestroy(uintptr_t arg);
private:
KReadableEvent readable_event;
KWritableEvent writable_event;