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_swhois.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_swhois.cpp') diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 6c420ca3a..708f6b072 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -48,7 +48,7 @@ class CommandSwhois : public Command TRANSLATE2(TR_NICK, TR_TEXT); } - CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE + CmdResult Handle(User* user, const Params& parameters) override { User* dest = ServerInstance->FindNick(parameters[0]); @@ -103,7 +103,7 @@ class ModuleSWhois : public Module, public Whois::LineEventListener } // :kenny.chatspike.net 320 Brain Azhrarn :is getting paid to play games. - ModResult OnWhoisLine(Whois::Context& whois, Numeric::Numeric& numeric) CXX11_OVERRIDE + ModResult OnWhoisLine(Whois::Context& whois, Numeric::Numeric& numeric) override { /* We use this and not OnWhois because this triggers for remote, too */ if (numeric.GetNumeric() == 312) @@ -120,7 +120,7 @@ class ModuleSWhois : public Module, public Whois::LineEventListener return MOD_RES_PASSTHRU; } - void OnPostOper(User* user, const std::string &opertype, const std::string &opername) CXX11_OVERRIDE + void OnPostOper(User* user, const std::string &opertype, const std::string &opername) override { if (!IS_LOCAL(user)) return; @@ -135,7 +135,7 @@ class ModuleSWhois : public Module, public Whois::LineEventListener ServerInstance->PI->SendMetaData(user, "swhois", swhois); } - void OnPostDeoper(User* user) CXX11_OVERRIDE + void OnPostDeoper(User* user) override { std::string* swhois = cmd.swhois.get(user); if (!swhois) @@ -149,14 +149,14 @@ class ModuleSWhois : public Module, public Whois::LineEventListener ServerInstance->PI->SendMetaData(user, "swhois", ""); } - void OnDecodeMetaData(Extensible* target, const std::string& extname, const std::string&) CXX11_OVERRIDE + void OnDecodeMetaData(Extensible* target, const std::string& extname, const std::string&) override { User* dest = static_cast(target); if (dest && (extname == "swhois")) cmd.operblock.set(dest, 0); } - Version GetVersion() CXX11_OVERRIDE + Version GetVersion() override { return Version("Provides the SWHOIS command which allows setting of arbitrary WHOIS lines", VF_OPTCOMMON | VF_VENDOR); } -- cgit v1.3.1-10-gc9f91