diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-29 01:23:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-29 12:04:15 +0100 |
commit | 6e2a82df13477e9e8dc9cc027a95cddceb89f64f (patch) | |
tree | a5044caa9a55dae50a17680824ef4253b181543c /Kernel/TTY | |
parent | 4a3a947df3f9722065b5c938a75d9d651ae1ff03 (diff) | |
download | serenity-6e2a82df13477e9e8dc9cc027a95cddceb89f64f.zip |
Kernel: Port File to RefCounted
Since RefCounted automatically calls a method named `will_be_destoyed`
on classes that have one, so there's no need to have a custom
implementation of unref in File.
Diffstat (limited to 'Kernel/TTY')
-rw-r--r-- | Kernel/TTY/SlavePTY.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/SlavePTY.h b/Kernel/TTY/SlavePTY.h index 4be7373e77..190408703f 100644 --- a/Kernel/TTY/SlavePTY.h +++ b/Kernel/TTY/SlavePTY.h @@ -15,7 +15,7 @@ class MasterPTY; class SlavePTY final : public TTY { public: - virtual bool unref() const override; + bool unref() const; virtual ~SlavePTY() override; void on_master_write(const UserOrKernelBuffer&, size_t); |