From cb1194d37a9cfd32ad44aae041a382f77a37edaf Mon Sep 17 00:00:00 2001 From: alesapin Date: Tue, 9 Feb 2021 12:05:54 +0300 Subject: [PATCH] Add final to some classes --- src/IO/WriteBufferFromArena.h | 2 +- src/Interpreters/DDLWorker.cpp | 2 +- src/Interpreters/InterpreterKillQueryQuery.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IO/WriteBufferFromArena.h b/src/IO/WriteBufferFromArena.h index b5fd9fac5a3..0e8a11fb5d6 100644 --- a/src/IO/WriteBufferFromArena.h +++ b/src/IO/WriteBufferFromArena.h @@ -13,7 +13,7 @@ namespace DB * * While using this object, no other allocations in arena are possible. */ -class WriteBufferFromArena : public WriteBuffer +class WriteBufferFromArena final : public WriteBuffer { private: Arena & arena; diff --git a/src/Interpreters/DDLWorker.cpp b/src/Interpreters/DDLWorker.cpp index e18b92b4bd5..05370a6a3b7 100644 --- a/src/Interpreters/DDLWorker.cpp +++ b/src/Interpreters/DDLWorker.cpp @@ -1203,7 +1203,7 @@ void DDLWorker::runCleanupThread() } -class DDLQueryStatusInputStream : public IBlockInputStream +class DDLQueryStatusInputStream final : public IBlockInputStream { public: diff --git a/src/Interpreters/InterpreterKillQueryQuery.h b/src/Interpreters/InterpreterKillQueryQuery.h index e1ea23d3dec..788703f8e6d 100644 --- a/src/Interpreters/InterpreterKillQueryQuery.h +++ b/src/Interpreters/InterpreterKillQueryQuery.h @@ -12,7 +12,7 @@ class Context; class AccessRightsElements; -class InterpreterKillQueryQuery : public IInterpreter +class InterpreterKillQueryQuery final : public IInterpreter { public: InterpreterKillQueryQuery(const ASTPtr & query_ptr_, Context & context_)