From c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 25 Jan 2019 02:52:11 +0000 Subject: Replace the override macro with the override keyword. --- src/modules/m_disable.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_disable.cpp') diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp index 203f9ee64..c45d47d7d 100644 --- a/src/modules/m_disable.cpp +++ b/src/modules/m_disable.cpp @@ -77,7 +77,7 @@ class ModuleDisable : public Module } public: - void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE + void ReadConfig(ConfigStatus& status) override { ConfigTag* tag = ServerInstance->Config->ConfValue("disabled"); @@ -121,7 +121,7 @@ class ModuleDisable : public Module notifyopers = tag->getBool("notifyopers"); } - ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) CXX11_OVERRIDE + ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) override { // If a command is unvalidated or the source is not registered we do nothing. if (!validated || user->registered != REG_ALL) @@ -149,7 +149,7 @@ class ModuleDisable : public Module return MOD_RES_DENY; } - ModResult OnRawMode(User* user, Channel* chan, ModeHandler* mh, const std::string& param, bool adding) CXX11_OVERRIDE + ModResult OnRawMode(User* user, Channel* chan, ModeHandler* mh, const std::string& param, bool adding) override { // If a mode change is remote or the source is not registered we do nothing. if (!IS_LOCAL(user) || user->registered != REG_ALL) @@ -180,7 +180,7 @@ class ModuleDisable : public Module return MOD_RES_DENY; } - Version GetVersion() CXX11_OVERRIDE + Version GetVersion() override { return Version("Provides support for disabling commands and modes", VF_VENDOR); } -- cgit v1.3.1-10-gc9f91