From dec5875aca7a2e0c281388db2f25d195ad9b2a3d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 4 Oct 2021 17:07:51 +0100 Subject: Apply the final keyword to all module classes where appropriate. --- src/modules/m_spanningtree/servercommand.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/modules/m_spanningtree/servercommand.h') diff --git a/src/modules/m_spanningtree/servercommand.h b/src/modules/m_spanningtree/servercommand.h index 7d350fc63..379dbbc19 100644 --- a/src/modules/m_spanningtree/servercommand.h +++ b/src/modules/m_spanningtree/servercommand.h @@ -23,7 +23,8 @@ #include "utils.h" #include "treeserver.h" -class ProtocolException : public ModuleException +class ProtocolException final + : public ModuleException { public: ProtocolException(const std::string& msg) @@ -34,7 +35,8 @@ class ProtocolException : public ModuleException /** Base class for server-to-server commands that may have a (remote) user source or server source. */ -class ServerCommand : public CommandBase +class ServerCommand + : public CommandBase { public: ServerCommand(Module* Creator, const std::string& Name, unsigned int MinPara = 0, unsigned int MaxPara = 0); @@ -60,7 +62,8 @@ class ServerCommand : public CommandBase * When a server sends a command of this type and the source is a server (sid), the link is aborted. */ template -class UserOnlyServerCommand : public ServerCommand +class UserOnlyServerCommand + : public ServerCommand { public: UserOnlyServerCommand(Module* Creator, const std::string& Name, unsigned int MinPara = 0, unsigned int MaxPara = 0) @@ -79,7 +82,8 @@ class UserOnlyServerCommand : public ServerCommand * When a server sends a command of this type and the source is a user (uuid), the link is aborted. */ template -class ServerOnlyServerCommand : public ServerCommand +class ServerOnlyServerCommand + : public ServerCommand { public: ServerOnlyServerCommand(Module* Creator, const std::string& Name, unsigned int MinPara = 0, unsigned int MaxPara = 0) @@ -94,7 +98,7 @@ class ServerOnlyServerCommand : public ServerCommand } }; -class ServerCommandManager +class ServerCommandManager final { typedef std::unordered_map ServerCommandMap; ServerCommandMap commands; -- cgit v1.3.1-10-gc9f91