summaryrefslogtreecommitdiff
path: root/Kernel/TTY
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-12-29 01:23:35 +0200
committerAndreas Kling <kling@serenityos.org>2021-12-29 12:04:15 +0100
commit6e2a82df13477e9e8dc9cc027a95cddceb89f64f (patch)
treea5044caa9a55dae50a17680824ef4253b181543c /Kernel/TTY
parent4a3a947df3f9722065b5c938a75d9d651ae1ff03 (diff)
downloadserenity-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.h2
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);