From 218069f421cb7b228320ce31aa78dc72ae59e9c1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 19 Jul 2019 13:32:56 +0200 Subject: [PATCH] Kernel: Make the Thread::FileDescriptionBlocker constructor protected. Nobody should ever construct one of these directly. --- Kernel/Thread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kernel/Thread.h b/Kernel/Thread.h index d668f5bd762..45a170e05d1 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -75,9 +75,11 @@ public: class FileDescriptionBlocker : public Blocker { public: - explicit FileDescriptionBlocker(const FileDescription&); const FileDescription& blocked_description() const; + protected: + explicit FileDescriptionBlocker(const FileDescription&); + private: NonnullRefPtr m_blocked_description; };