From 4ab1c43c1eee708fc50a4808f714a731891b75e8 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 30 Apr 2013 08:38:33 +0100 Subject: Tidy up keywords on module methods. - Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it. --- src/modules/m_chanlog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_chanlog.cpp') diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp index 0f53ceedf..ac86e8746 100644 --- a/src/modules/m_chanlog.cpp +++ b/src/modules/m_chanlog.cpp @@ -31,7 +31,7 @@ class ModuleChanLog : public Module ChanLogTargets logstreams; public: - void init() + void init() CXX11_OVERRIDE { Implementation eventlist[] = { I_OnRehash, I_OnSendSnotice }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); @@ -39,7 +39,7 @@ class ModuleChanLog : public Module OnRehash(NULL); } - virtual void OnRehash(User *user) + void OnRehash(User *user) CXX11_OVERRIDE { std::string snomasks; std::string channel; @@ -67,7 +67,7 @@ class ModuleChanLog : public Module } - virtual ModResult OnSendSnotice(char &sno, std::string &desc, const std::string &msg) + ModResult OnSendSnotice(char &sno, std::string &desc, const std::string &msg) CXX11_OVERRIDE { std::pair itpair = logstreams.equal_range(sno); if (itpair.first == itpair.second) @@ -88,7 +88,7 @@ class ModuleChanLog : public Module return MOD_RES_PASSTHRU; } - virtual Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Logs snomask output to channel(s).", VF_VENDOR); } @@ -125,7 +125,7 @@ class ChannelLogStream : public LogStream { } - virtual void OnLog(int loglevel, const std::string &type, const std::string &msg) + void OnLog(int loglevel, const std::string &type, const std::string &msg) { Channel *c = ServerInstance->FindChan(channel); static bool Logging = false; -- cgit v1.3.1-10-gc9f91