]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Add CXX11_OVERRIDE to overridden members that lack it.
authorPeter Powell <petpow@saberuk.com>
Wed, 12 Jul 2017 13:41:52 +0000 (14:41 +0100)
committerPeter Powell <petpow@saberuk.com>
Wed, 12 Jul 2017 13:41:52 +0000 (14:41 +0100)
This fixes a ton of warnings when building on compilers that
default to C++11 or newer.

45 files changed:
include/builtinmodes.h
include/extensible.h
include/inspsocket.h
include/mode.h
include/modules.h
include/users.h
src/coremods/core_dns.cpp
src/coremods/core_hostname_lookup.cpp
src/coremods/core_loadmodule.cpp
src/coremods/core_lusers.cpp
src/coremods/core_privmsg.cpp
src/coremods/core_stub.cpp
src/coremods/core_whowas.cpp
src/modmanager_static.cpp
src/modules/extra/m_pgsql.cpp
src/modules/m_abbreviation.cpp
src/modules/m_alias.cpp
src/modules/m_bcrypt.cpp
src/modules/m_clearchan.cpp
src/modules/m_cloaking.cpp
src/modules/m_conn_join.cpp
src/modules/m_conn_umodes.cpp
src/modules/m_connectban.cpp
src/modules/m_filter.cpp
src/modules/m_flashpolicyd.cpp
src/modules/m_httpd.cpp
src/modules/m_ircv3.cpp
src/modules/m_messageflood.cpp
src/modules/m_mlock.cpp
src/modules/m_namedmodes.cpp
src/modules/m_nicklock.cpp
src/modules/m_ojoin.cpp
src/modules/m_operprefix.cpp
src/modules/m_permchannels.cpp
src/modules/m_rline.cpp
src/modules/m_samode.cpp
src/modules/m_sha1.cpp
src/modules/m_shun.cpp
src/modules/m_spanningtree/main.h
src/modules/m_spanningtree/protocolinterface.h
src/modules/m_spanningtree/servercommand.h
src/modules/m_spanningtree/treeserver.h
src/modules/m_spanningtree/treesocket.h
src/modules/m_spanningtree/utils.h
src/modules/m_timedbans.cpp

index a77734ae3cfeba10eb6aabc14cf88a354ab1f9b4..bfb46823fbd7f533b2e162591bef21fdb11a3bd2 100644 (file)
@@ -97,8 +97,8 @@ class ModeUserServerNoticeMask : public ModeHandler
 
  public:
        ModeUserServerNoticeMask();
-       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding);
-       void OnParameterMissing(User* user, User* dest, Channel* channel);
+       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding) CXX11_OVERRIDE;
+       void OnParameterMissing(User* user, User* dest, Channel* channel) CXX11_OVERRIDE;
 
        /** Create a displayable mode string of the snomasks set on a given user
         * @param user The user whose notice masks to format
index 07756fb599a419fe3525fb326cfac2ff28d1ec22..1da45cee632ff4ff63bd104db927c6e603112e55 100644 (file)
@@ -111,7 +111,7 @@ class CoreExport Extensible : public classbase
        inline const ExtensibleStore& GetExtList() const { return extensions; }
 
        Extensible();
-       virtual CullResult cull();
+       virtual CullResult cull() CXX11_OVERRIDE;
        virtual ~Extensible();
        void doUnhookExtensions(const std::vector<reference<ExtensionItem> >& toRemove);
 
index 751374fdf1aab978bfeae12e45c3ade7881359d2..95f29ff11bf6f235f4f553d982bc2ec3f046c789 100644 (file)
@@ -312,7 +312,7 @@ class CoreExport StreamSocket : public EventHandler
         */
        virtual void Close();
        /** This ensures that close is called prior to destructor */
-       virtual CullResult cull();
+       virtual CullResult cull() CXX11_OVERRIDE;
 
        /** Get the IOHook of a module attached to this socket
         * @param mod Module whose IOHook to return
@@ -372,7 +372,7 @@ class CoreExport BufferedSocket : public StreamSocket
        /** When there is data waiting to be read on a socket, the OnDataReady()
         * method is called.
         */
-       virtual void OnDataReady() = 0;
+       virtual void OnDataReady() CXX11_OVERRIDE = 0;
 
        /**
         * When an outbound connection fails, and the attempt times out, you
index 956b86050a09b99d6fbf6f411e7075eac3bf35a3..2e9ed22f31279aa94b86614af753a8b61aa52615 100644 (file)
@@ -166,7 +166,7 @@ class CoreExport ModeHandler : public ServiceProvider
         * @param mclass The object type of this mode handler, one of ModeHandler::Class
         */
        ModeHandler(Module* me, const std::string& name, char modeletter, ParamSpec params, ModeType type, Class mclass = MC_OTHER);
-       virtual CullResult cull();
+       virtual CullResult cull() CXX11_OVERRIDE;
        virtual ~ModeHandler();
 
        /** Register this object in the ModeParser
index 5deed943a786062e65af81cfa4d2ff87459e93a5..d9d05a39603c2fa4245b9ebe01332c0fd7e4ad0e 100644 (file)
@@ -276,7 +276,7 @@ class CoreExport Module : public classbase, public usecountbase
        /** Clean up prior to destruction
         * If you override, you must call this AFTER your module's cleanup
         */
-       virtual CullResult cull();
+       virtual CullResult cull() CXX11_OVERRIDE;
 
        /** Default destructor.
         * destroys a module class
index 4939feb1ea529a8175e23a9fd234ec2e07c7e84b..4c8df549dce07346a6b09a0a640215de38697c13 100644 (file)
@@ -717,7 +717,7 @@ class CoreExport User : public Extensible
        /** Default destructor
         */
        virtual ~User();
-       virtual CullResult cull();
+       virtual CullResult cull() CXX11_OVERRIDE;
 };
 
 class CoreExport UserIOHandler : public StreamSocket
@@ -742,7 +742,7 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
 {
  public:
        LocalUser(int fd, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* server);
-       CullResult cull();
+       CullResult cull() CXX11_OVERRIDE;
 
        UserIOHandler eh;
 
@@ -836,12 +836,12 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
         */
        void SetClass(const std::string &explicit_name = "");
 
-       bool SetClientIP(const char* sip, bool recheck_eline = true);
+       bool SetClientIP(const char* sip, bool recheck_eline = true) CXX11_OVERRIDE;
 
-       void SetClientIP(const irc::sockets::sockaddrs& sa, bool recheck_eline = true);
+       void SetClientIP(const irc::sockets::sockaddrs& sa, bool recheck_eline = true) CXX11_OVERRIDE;
 
-       void Write(const std::string& text);
-       void Write(const char*, ...) CUSTOM_PRINTF(2, 3);
+       void Write(const std::string& text) CXX11_OVERRIDE;
+       void Write(const char*, ...) CXX11_OVERRIDE CUSTOM_PRINTF(2, 3);
 
        /** Send a NOTICE message from the local server to the user.
         * The message will be sent even if the user is connected to a remote server.
@@ -855,7 +855,7 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
         * @param command A command (should be all CAPS)
         * @return True if this user can execute the command
         */
-       bool HasPermission(const std::string &command);
+       bool HasPermission(const std::string &command) CXX11_OVERRIDE;
 
        /** Returns true if a user has a given permission.
         * This is used to check whether or not users may perform certain actions which admins may not wish to give to
@@ -865,7 +865,7 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
         * @param noisy If set to true, the user is notified that they do not have the specified permission where applicable. If false, no notification is sent.
         * @return True if this user has the permission in question.
         */
-       bool HasPrivPermission(const std::string &privstr, bool noisy = false);
+       bool HasPrivPermission(const std::string &privstr, bool noisy = false) CXX11_OVERRIDE;
 
        /** Returns true or false if a user can set a privileged user or channel mode.
         * This is done by looking up their oper type from User::oper, then referencing
@@ -873,7 +873,7 @@ class CoreExport LocalUser : public User, public insp::intrusive_list_node<Local
         * @param mh Mode to check
         * @return True if the user can set or unset this mode.
         */
-       bool HasModePermission(const ModeHandler* mh) const;
+       bool HasModePermission(const ModeHandler* mh) const CXX11_OVERRIDE;
 
        /** Change nick to uuid, unset REG_NICK and send a nickname overruled numeric.
         * This is called when another user (either local or remote) needs the nick of this user and this user
@@ -904,9 +904,9 @@ class CoreExport FakeUser : public User
                nick = sname;
        }
 
-       virtual CullResult cull();
-       virtual const std::string& GetFullHost();
-       virtual const std::string& GetFullRealHost();
+       virtual CullResult cull() CXX11_OVERRIDE;
+       virtual const std::string& GetFullHost() CXX11_OVERRIDE;
+       virtual const std::string& GetFullRealHost() CXX11_OVERRIDE;
 };
 
 /* Faster than dynamic_cast */
index 7ee406a24540f5c97ff9c4b454f5fd587d9801f6..1040bb036736b57794529b2256f9b6e875f7d403 100644 (file)
@@ -442,7 +442,7 @@ class MyManager : public Manager, public Timer, public EventHandler
                }
        }
 
-       void Process(DNS::Request* req)
+       void Process(DNS::Request* req) CXX11_OVERRIDE
        {
                if ((unloading) || (req->creator->dying))
                        throw Exception("Module is being unloaded");
@@ -509,13 +509,13 @@ class MyManager : public Manager, public Timer, public EventHandler
                ServerInstance->Timers.AddTimer(req);
        }
 
-       void RemoveRequest(DNS::Request* req)
+       void RemoveRequest(DNS::Request* req) CXX11_OVERRIDE
        {
                if (requests[req->id] == req)
                        requests[req->id] = NULL;
        }
 
-       std::string GetErrorStr(Error e)
+       std::string GetErrorStr(Error e) CXX11_OVERRIDE
        {
                switch (e)
                {
@@ -664,7 +664,7 @@ class MyManager : public Manager, public Timer, public EventHandler
                delete request;
        }
 
-       bool Tick(time_t now)
+       bool Tick(time_t now) CXX11_OVERRIDE
        {
                ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "cache: purging DNS cache");
 
@@ -826,7 +826,7 @@ class ModuleDNS : public Module
                        this->manager.Rehash(DNSServer, SourceIP, SourcePort);
        }
 
-       void OnUnloadModule(Module* mod)
+       void OnUnloadModule(Module* mod) CXX11_OVERRIDE
        {
                for (unsigned int i = 0; i <= MAX_REQUEST_ID; ++i)
                {
@@ -845,7 +845,7 @@ class ModuleDNS : public Module
                }
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("DNS support", VF_CORE|VF_VENDOR);
        }
index b9adc9c2e7433df71b9629a18880ba5fa3feb6fa..d150b85516623cab55ca27348dea23c0d6510323 100644 (file)
@@ -195,7 +195,7 @@ class ModuleHostnameLookup : public Module
                ph = &ptrHosts;
        }
 
-       void OnUserInit(LocalUser *user)
+       void OnUserInit(LocalUser *user) CXX11_OVERRIDE
        {
                if (!DNS || !user->MyClass->resolvehostnames)
                {
@@ -222,12 +222,12 @@ class ModuleHostnameLookup : public Module
                }
        }
 
-       ModResult OnCheckReady(LocalUser* user)
+       ModResult OnCheckReady(LocalUser* user) CXX11_OVERRIDE
        {
                return this->dnsLookup.get(user) ? MOD_RES_DENY : MOD_RES_PASSTHRU;
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("Provides support for DNS lookups on connecting clients", VF_CORE|VF_VENDOR);
        }
index 09c0441988d9c70ce859431770db3ba53bb5b499..fde1495879bcf9a5156ccd7f889e53369ad2823a 100644 (file)
@@ -116,7 +116,7 @@ class CoreModLoadModule : public Module
        {
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("Provides the LOADMODULE and UNLOADMODULE commands", VF_VENDOR|VF_CORE);
        }
index a0d0d0205ee26a310358e407978696da3cb8a690..7f1903dd0628d5d26a447587fda4ebe87754cece 100644 (file)
@@ -151,20 +151,20 @@ class ModuleLusers : public Module
        {
        }
 
-       void OnPostConnect(User* user)
+       void OnPostConnect(User* user) CXX11_OVERRIDE
        {
                counters.UpdateMaxUsers();
                if (user->IsModeSet(invisiblemode))
                        counters.invisible++;
        }
 
-       void OnUserQuit(User* user, const std::string& message, const std::string& oper_message)
+       void OnUserQuit(User* user, const std::string& message, const std::string& oper_message) CXX11_OVERRIDE
        {
                if (user->IsModeSet(invisiblemode))
                        counters.invisible--;
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("LUSERS", VF_VENDOR | VF_CORE);
        }
index cccba0850501f1ac6c7ba7138c570327d8237fd9..449097a7500d75994e5f866e6f87311dd356d6bd 100644 (file)
@@ -280,7 +280,7 @@ class ModuleCoreMessage : public Module
        {
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("PRIVMSG, NOTICE", VF_CORE|VF_VENDOR);
        }
index 91fc162419d4bb48dd892d686d4ca93d53a7c292..71b0ddaea32ef529e74cee183c21c367709046a1 100644 (file)
@@ -147,7 +147,7 @@ class CoreModStub : public Module
        {
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("Provides the stub commands CONNECT, LINKS, SERVER and SQUIT", VF_VENDOR|VF_CORE);
        }
index f52fb0174e849bc20790095ae190e5069c007fb4..0bb47b2731546bade973a8191af552d96256ffad 100644 (file)
@@ -259,13 +259,13 @@ class ModuleWhoWas : public Module
        {
        }
 
-       void OnGarbageCollect()
+       void OnGarbageCollect() CXX11_OVERRIDE
        {
                // Remove all entries older than MaxKeep
                cmd.manager.Maintain();
        }
 
-       void OnUserQuit(User* user, const std::string& message, const std::string& oper_message)
+       void OnUserQuit(User* user, const std::string& message, const std::string& oper_message) CXX11_OVERRIDE
        {
                cmd.manager.Add(user);
        }
@@ -288,7 +288,7 @@ class ModuleWhoWas : public Module
                cmd.manager.UpdateConfig(NewGroupSize, NewMaxGroups, NewMaxKeep);
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("WHOWAS", VF_VENDOR);
        }
index 5c04a76800f6e211afbfea316c0ca4ea11cd45f4..9a385dd3ced80d70e41a41d19a6a5c882718d4c5 100644 (file)
@@ -72,7 +72,7 @@ class AllModule : public Module
                stdalgo::delete_all(cmds);
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("All commands", VF_VENDOR|VF_CORE);
        }
index 5f6f6e30faa0615c5d9c80eb37c306a59109571b..6835cb558dde29a7365c6da739bb1d75c1345cd5 100644 (file)
@@ -159,7 +159,7 @@ class SQLConn : public SQLProvider, public EventHandler
                }
        }
 
-       CullResult cull()
+       CullResult cull() CXX11_OVERRIDE
        {
                this->SQLProvider::cull();
                ServerInstance->Modules->DelService(*this);
@@ -389,7 +389,7 @@ restart:
                }
        }
 
-       void submit(SQLQuery *req, const std::string& q)
+       void submit(SQLQuery *req, const std::string& q) CXX11_OVERRIDE
        {
                if (qinprog.q.empty())
                {
@@ -402,7 +402,7 @@ restart:
                }
        }
 
-       void submit(SQLQuery *req, const std::string& q, const ParamL& p)
+       void submit(SQLQuery *req, const std::string& q, const ParamL& p) CXX11_OVERRIDE
        {
                std::string res;
                unsigned int param = 0;
@@ -427,7 +427,7 @@ restart:
                submit(req, res);
        }
 
-       void submit(SQLQuery *req, const std::string& q, const ParamM& p)
+       void submit(SQLQuery *req, const std::string& q, const ParamM& p) CXX11_OVERRIDE
        {
                std::string res;
                for(std::string::size_type i = 0; i < q.length(); i++)
index 85709080f8e1436c43ae1957d0b11c4366a8aee6..2a38bd3a674f16a57b2ae4f6a04f74d88731c10b 100644 (file)
@@ -22,7 +22,7 @@
 class ModuleAbbreviation : public Module
 {
  public:
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                ServerInstance->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_FIRST);
        }
index c6e53f0cfd71e3ca5219e104051caa476d780b46..e99d9dab5b998bf1207a842ca8bd29e2e497d351 100644 (file)
@@ -352,7 +352,7 @@ class ModuleAlias : public Module
                ServerInstance->Parser.CallHandler(command, pars, user);
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                // Prioritise after spanningtree so that channel aliases show the alias before the effects.
                Module* linkmod = ServerInstance->Modules->Find("m_spanningtree.so");
index 8a025a0d661c4c96199ddc95d09a5284f739fc03..1698b072785985f36c16a4f783adf75700ae3f3f 100644 (file)
@@ -978,7 +978,7 @@ class ModuleBCrypt : public Module
                bcrypt.rounds = conf->getInt("rounds", 10, 1);
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("Implements bcrypt hashing", VF_VENDOR);
        }
index 4142f81d1709c01864a764b503036966eb964b32..1b4b8724ae15319127985def89818bd8db600d30 100644 (file)
@@ -150,7 +150,7 @@ class ModuleClearChan : public Module
        {
        }
 
-       void init()
+       void init() CXX11_OVERRIDE
        {
                // Only attached while we are working; don't react to events otherwise
                ServerInstance->Modules->DetachAll(this);
index 5cedb5774fd3dd6ba2eba1f37cd1adfb8797b201..c114516c9fe442de075e0ce4c2ff4f76f8adfd14 100644 (file)
@@ -290,7 +290,7 @@ class ModuleCloaking : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                /* Needs to be after m_banexception etc. */
                ServerInstance->Modules->SetPriority(this, I_OnCheckBan, PRIORITY_LAST);
index b22dbdf4dc69bee8b5078b725b8b452f2a0c4592..bd8d89dc9b54365e895da7f7ad626b0e7778e8e9 100644 (file)
@@ -78,7 +78,7 @@ class ModuleConnJoin : public Module
                defdelay = tag->getInt("delay", 0, 0, 60);
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                ServerInstance->Modules->SetPriority(this, I_OnPostConnect, PRIORITY_LAST);
        }
index 7a8d66ae72dcd24812612e01499c3db1efe6fab6..0b708641e9124219ce66a5f9855c7f763a3b6e38 100644 (file)
@@ -25,7 +25,7 @@
 class ModuleModesOnConnect : public Module
 {
  public:
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                // for things like +x on connect, important, otherwise we have to resort to config order (bleh) -- w00t
                ServerInstance->Modules->SetPriority(this, I_OnUserConnect, PRIORITY_FIRST);
index fcb4b09ed8dcb9c2a69473808458801007fd35ac..e0f9717c4cb99181e39e6d4d9261922ff9471447 100644 (file)
@@ -95,7 +95,7 @@ class ModuleConnectBan : public Module
                }
        }
 
-       void OnGarbageCollect()
+       void OnGarbageCollect() CXX11_OVERRIDE
        {
                ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Clearing map.");
                connects.clear();
index bd19a60ba1292e5db8cb5180b49fe2ef50271b6f..0badd137757152a8b57d45588301757280222c1b 100644 (file)
@@ -176,7 +176,7 @@ class ModuleFilter : public Module
        ExemptTargetSet exemptednicks;
 
        ModuleFilter();
-       CullResult cull();
+       CullResult cull() CXX11_OVERRIDE;
        ModResult OnUserPreMessage(User* user, void* dest, int target_type, std::string& text, char status, CUList& exempt_list, MessageType msgtype) CXX11_OVERRIDE;
        FilterResult* FilterMatch(User* user, const std::string &text, int flags);
        bool DeleteFilter(const std::string &freeform);
index 8f847e1117772feb24050241344fdb2876e8913a..38b7be73fa65e75fbe4e46638ada706dec40497f 100644 (file)
@@ -146,7 +146,7 @@ class ModuleFlashPD : public Module
 </cross-domain-policy>";
        }
 
-       CullResult cull()
+       CullResult cull() CXX11_OVERRIDE
        {
                for (insp::intrusive_list<FlashPDSocket>::const_iterator i = sockets.begin(); i != sockets.end(); ++i)
                {
index 6055d1f77b38d179cff8d508aba840ccd6eaa022..35ae9abe5cecd8b7ba010e86a5e53e9e27919917 100644 (file)
@@ -224,7 +224,7 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru
                WriteData("\r\n");
        }
 
-       void OnDataReady()
+       void OnDataReady() CXX11_OVERRIDE
        {
                if (InternalState == HTTP_SERVE_RECV_POSTDATA)
                {
@@ -415,7 +415,7 @@ class ModuleHttpServer : public Module
                return MOD_RES_ALLOW;
        }
 
-       void OnUnloadModule(Module* mod)
+       void OnUnloadModule(Module* mod) CXX11_OVERRIDE
        {
                for (insp::intrusive_list<HttpServerSocket>::const_iterator i = sockets.begin(); i != sockets.end(); )
                {
index 9e94e556dbc4e2052e85fe5b1edef8ce6ce65c59..543fb49a40d9c3a275434abe47fec2b3fa67e77e 100644 (file)
@@ -169,7 +169,7 @@ class ModuleIRCv3 : public Module, public AccountEventListener
                last_excepts.clear();
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                ServerInstance->Modules->SetPriority(this, I_OnUserJoin, PRIORITY_LAST);
        }
index 7323605cb0203c65435d28f6022eb6f08a1ef558..d89de49eb0d0802098e41adfdb840952dcfb2da4 100644 (file)
@@ -150,7 +150,7 @@ class ModuleMsgFlood : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                // we want to be after all modules that might deny the message (e.g. m_muteban, m_noctcp, m_blockcolor, etc.)
                ServerInstance->Modules->SetPriority(this, I_OnUserPreMessage, PRIORITY_LAST);
index d3ab5b9fd2af0700fb6b26e2e95cad0b59183020..2a0410bedcacd3e6fc84da2048f379caa7508d1e 100644 (file)
@@ -34,7 +34,7 @@ class ModuleMLock : public Module
                return Version("Implements the ability to have server-side MLOCK enforcement.", VF_VENDOR);
        }
 
-       ModResult OnRawMode(User* source, Channel* channel, ModeHandler* mh, const std::string& parameter, bool adding)
+       ModResult OnRawMode(User* source, Channel* channel, ModeHandler* mh, const std::string& parameter, bool adding) CXX11_OVERRIDE
        {
                if (!channel)
                        return MOD_RES_PASSTHRU;
index 7a86c9e3cffb4a44700592c19332ae83e261fd69..7f2687d66280b74ed5aa74e407cc2742d5b53312 100644 (file)
@@ -124,7 +124,7 @@ class ModuleNamedModes : public Module
                return Version("Provides the ability to manipulate modes via long names.",VF_VENDOR);
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                ServerInstance->Modules->SetPriority(this, I_OnPreMode, PRIORITY_FIRST);
        }
index 35845c8d8c7a514bfdbced9478470df32dcf5c5c..6e22a69bbb7cd559550701ddcbc5ac92685b22d9 100644 (file)
@@ -157,7 +157,7 @@ class ModuleNickLock : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                Module *nflood = ServerInstance->Modules->Find("m_nickflood.so");
                ServerInstance->Modules->SetPriority(this, I_OnUserPreNick, PRIORITY_BEFORE, nflood);
index 9465a51e50aa41b5eb0a49b476f67471f9468e88..76e66bdc23cbff3d54b128d6253558cce20f42fc 100644 (file)
@@ -150,7 +150,7 @@ class ModuleOjoin : public Module
                return MOD_RES_DENY;
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                ServerInstance->Modules->SetPriority(this, I_OnUserPreJoin, PRIORITY_FIRST);
        }
index d66f994501389ccad8e29ab6a3440d55f0047223..b355047ee0bcbdafd881ca6a47df5e726e26fadf 100644 (file)
@@ -72,7 +72,7 @@ class ModuleOperPrefixMode : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       void OnPostJoin(Membership* memb)
+       void OnPostJoin(Membership* memb) CXX11_OVERRIDE
        {
                if ((!IS_LOCAL(memb->user)) || (!memb->user->IsOper()) || (memb->user->IsModeSet(hideopermode)))
                        return;
@@ -105,7 +105,7 @@ class ModuleOperPrefixMode : public Module
                return Version("Gives opers cmode +y which provides a staff prefix.", VF_VENDOR);
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                // m_opermodes may set +H on the oper to hide him, we don't want to set the oper prefix in that case
                Module* opermodes = ServerInstance->Modules->Find("m_opermodes.so");
index d514e62a5e7f9fded696e148a9213c8bd56ccc93..0f2a2ef6f3506c069fa6d0175bd462474e2ed2c0 100644 (file)
@@ -273,7 +273,7 @@ public:
                dirty = false;
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                // XXX: Load the DB here because the order in which modules are init()ed at boot is
                // alphabetical, this means we must wait until all modules have done their init()
index 97fbf169a2b13247fb3511fefc38a50b8b846f76..e77a00b6db313fb5dca924049508045edd8a91fd 100644 (file)
@@ -333,7 +333,7 @@ class ModuleRLine : public Module
                }
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                Module* mod = ServerInstance->Modules->Find("m_cgiirc.so");
                ServerInstance->Modules->SetPriority(this, I_OnUserRegister, PRIORITY_AFTER, mod);
index 6288f5862650268713912a5dd6a4c55d6f7d7941..394cea722011205736235c6dcef676970a5674d3 100644 (file)
@@ -96,7 +96,7 @@ class ModuleSaMode : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                Module *override = ServerInstance->Modules->Find("m_override.so");
                ServerInstance->Modules->SetPriority(this, I_OnPreMode, PRIORITY_BEFORE, override);
index 5926e492641356c0160cbeeae6fb0574bfb50320..798539d9177b9a510b3b569169d897ae056f83ec 100644 (file)
@@ -190,7 +190,7 @@ class ModuleSHA1 : public Module
                big_endian = (htonl(1337) == 1337);
        }
 
-       Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
                return Version("Implements SHA-1 hashing", VF_VENDOR);
        }
index 02272652439e4316b23d86cd065140755ebbc2bd..28faf898b061aa0d6bb3247285b8baed8fa072e6 100644 (file)
@@ -191,7 +191,7 @@ class ModuleShun : public Module
                ServerInstance->XLines->UnregisterFactory(&f);
        }
 
-       void Prioritize()
+       void Prioritize() CXX11_OVERRIDE
        {
                Module* alias = ServerInstance->Modules->Find("m_alias.so");
                ServerInstance->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_BEFORE, alias);
index 46c21b4e954aef8e12f7f1f4f932b982f55046dc..00cbd3dcda8e66ef5f9ad6bdce7cd4e30cbca4c3 100644 (file)
@@ -168,8 +168,8 @@ class ModuleSpanningTree : public Module
        void OnUnloadModule(Module* mod) CXX11_OVERRIDE;
        ModResult OnAcceptConnection(int newsock, ListenSocket* from, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* server) CXX11_OVERRIDE;
        void OnMode(User* source, User* u, Channel* c, const Modes::ChangeList& modes, ModeParser::ModeProcessFlag processflags, const std::string& output_mode) CXX11_OVERRIDE;
-       CullResult cull();
+       CullResult cull() CXX11_OVERRIDE;
        ~ModuleSpanningTree();
        Version GetVersion() CXX11_OVERRIDE;
-       void Prioritize();
+       void Prioritize() CXX11_OVERRIDE;
 };
index e7fed54752d60671b64ff24991305d49dbca78f8..b0609005c3ddc915f3b8b1b1fe748c3e6206e69b 100644 (file)
@@ -37,7 +37,7 @@ class SpanningTreeProtocolInterface : public ProtocolInterface
        void SendMetaData(Channel* chan, const std::string& key, const std::string& data) CXX11_OVERRIDE;
        void SendMetaData(const std::string& key, const std::string& data) CXX11_OVERRIDE;
        void SendSNONotice(char snomask, const std::string& text) CXX11_OVERRIDE;
-       void SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype);
-       void SendMessage(User* target, const std::string& text, MessageType msgtype);
-       void GetServerList(ServerList& sl);
+       void SendMessage(Channel* target, char status, const std::string& text, MessageType msgtype) CXX11_OVERRIDE;
+       void SendMessage(User* target, const std::string& text, MessageType msgtype) CXX11_OVERRIDE;
+       void GetServerList(ServerList& sl) CXX11_OVERRIDE;
 };
index 07dfc4898a28b97022a34de8a38129b45ebac490..ee7766764db299a691641eccacad494a3a50c492 100644 (file)
@@ -43,7 +43,7 @@ class ServerCommand : public CommandBase
        void RegisterService() CXX11_OVERRIDE;
 
        virtual CmdResult Handle(User* user, std::vector<std::string>& parameters) = 0;
-       virtual RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
+       virtual RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters) CXX11_OVERRIDE;
 
        /**
         * Extract the TS from a string.
index b7e9ee9d9bdd865d4de2a09ec54346acbf84dea9..f75adf54c9a65510f77441c41ee0e569554fcdd0 100644 (file)
@@ -219,7 +219,7 @@ class TreeServer : public Server
         */
        void OnPong() { pingtimer.OnPong(); }
 
-       CullResult cull();
+       CullResult cull() CXX11_OVERRIDE;
 
        /** Destructor, deletes ServerUser unless IsRoot()
         */
index 4887623c125f1e4aaff4f77a73f6305b152a06b0..3571f28169c107a5f1cdf32eb82a1375add35824 100644 (file)
@@ -200,7 +200,7 @@ class TreeSocket : public BufferedSocket
         */
        void CleanNegotiationInfo();
 
-       CullResult cull();
+       CullResult cull() CXX11_OVERRIDE;
        /** Destructor
         */
        ~TreeSocket();
@@ -216,7 +216,7 @@ class TreeSocket : public BufferedSocket
         * to server docs on the inspircd.org site, the other side
         * will then send back its own server string.
         */
-       void OnConnected();
+       void OnConnected() CXX11_OVERRIDE;
 
        /** Handle socket error event
         */
@@ -270,7 +270,7 @@ class TreeSocket : public BufferedSocket
        /** This function is called when we receive data from a remote
         * server.
         */
-       void OnDataReady();
+       void OnDataReady() CXX11_OVERRIDE;
 
        /** Send one or more complete lines down the socket
         */
@@ -299,10 +299,10 @@ class TreeSocket : public BufferedSocket
 
        /** Handle socket timeout from connect()
         */
-       void OnTimeout();
+       void OnTimeout() CXX11_OVERRIDE;
        /** Handle server quit on close
         */
-       void Close();
+       void Close() CXX11_OVERRIDE;
 
        /** Fixes messages coming from old servers so the new command handlers understand them
         */
index a2f7212f6d0c7c4a65e2e04c419b859a215d1c13..f262f9a483a90d3b84833e889daef218a65b5b6f 100644 (file)
@@ -108,7 +108,7 @@ class SpanningTreeUtilities : public classbase
 
        /** Prepare for class destruction
         */
-       CullResult cull();
+       CullResult cull() CXX11_OVERRIDE;
 
        /** Destroy class and free listeners etc
         */
index 874e6440f81495986d66d433dc02cbdcc32fb984..44c6c4c4f85ce33ad8e8e83e16cd5197c44204c0 100644 (file)
@@ -218,7 +218,7 @@ class ModuleTimedBans : public Module
                }
        }
 
-       void OnChannelDelete(Channel* chan)
+       void OnChannelDelete(Channel* chan) CXX11_OVERRIDE
        {
                // Remove all timed bans affecting the channel from internal bookkeeping
                TimedBanList.erase(std::remove_if(TimedBanList.begin(), TimedBanList.end(), ChannelMatcher(chan)), TimedBanList.end());