diff options
author | Sadie Powell <sadie@witchery.services> | 2023-03-06 16:11:54 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-03-13 13:52:56 +0000 |
commit | 29db25dac7aff36b4f7239a9fabd57230534cf35 (patch) | |
tree | 9cc80ab7134514381f02835629ade620584020d0 | |
parent | d210cd26952a4d4441223809dc259fcf6eaff5fd (diff) |
Fix missing override keywords.
40 files changed, 66 insertions, 66 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index c3d2a9706..5f14a2eb6 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -15,7 +15,7 @@ struct BadWordImpl : BadWord, Serializable { BadWordImpl() : Serializable("BadWord") { } - ~BadWordImpl(); + ~BadWordImpl() override; void Serialize(Serialize::Data &data) const override { @@ -35,7 +35,7 @@ struct BadWordsImpl : BadWords BadWordsImpl(Extensible *obj) : ci(anope_dynamic_static_cast<ChannelInfo *>(obj)), badwords("BadWord") { } - ~BadWordsImpl(); + ~BadWordsImpl() override; BadWord* AddBadWord(const Anope::string &word, BadWordType type) override { @@ -160,7 +160,7 @@ class BadwordsDelCallback : public NumberList bw = ci->Require<BadWords>("badwords"); } - ~BadwordsDelCallback() + ~BadwordsDelCallback() override { if (!deleted) source.Reply(_("No matching entries on %s bad words list."), ci->name.c_str()); diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp index bf8071167..9a376d9d2 100644 --- a/modules/commands/bs_kick.cpp +++ b/modules/commands/bs_kick.cpp @@ -165,9 +165,9 @@ class CommandBSKickBase : public Command { } - virtual void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override = 0; + void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override = 0; - virtual bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; + bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; protected: bool CheckArguments(CommandSource &source, const std::vector<Anope::string> ¶ms, ChannelInfo* &ci) diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index e8affd1f3..e75a840d3 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -261,7 +261,7 @@ class CommandCSAccess : public Command this->override = true; } - ~AccessDelCallback() + ~AccessDelCallback() override { if (denied && !deleted) source.Reply(ACCESS_DENIED); diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp index e0acdbbfa..04ee17da3 100644 --- a/modules/commands/cs_akick.cpp +++ b/modules/commands/cs_akick.cpp @@ -218,7 +218,7 @@ class CommandCSAKick : public Command { } - ~AkickDelCallback() + ~AkickDelCallback() override { if (!deleted) source.Reply(_("No matching entries on %s autokick list."), ci->name.c_str()); diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp index a694afdb5..84b33423d 100644 --- a/modules/commands/cs_entrymsg.cpp +++ b/modules/commands/cs_entrymsg.cpp @@ -26,7 +26,7 @@ struct EntryMsgImpl : EntryMsg, Serializable this->when = ct; } - ~EntryMsgImpl(); + ~EntryMsgImpl() override; void Serialize(Serialize::Data &data) const override { diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index 59f164b6d..51f3ab8fe 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -18,7 +18,7 @@ struct LogSettingImpl : LogSetting, Serializable { } - ~LogSettingImpl() + ~LogSettingImpl() override { ChannelInfo *ci = ChannelInfo::Find(chan); if (ci) @@ -81,7 +81,7 @@ struct LogSettingsImpl : LogSettings { LogSettingsImpl(Extensible *) { } - ~LogSettingsImpl() + ~LogSettingsImpl() override { for (iterator it = (*this)->begin(); it != (*this)->end();) { diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 91a9c26fd..fcd6222d4 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -18,7 +18,7 @@ struct ModeLockImpl : ModeLock, Serializable { } - ~ModeLockImpl() + ~ModeLockImpl() override { ChannelInfo *chan = ChannelInfo::Find(ci); if (chan) @@ -42,7 +42,7 @@ struct ModeLocksImpl : ModeLocks { } - ~ModeLocksImpl() + ~ModeLocksImpl() override { ModeList modelist; mlocks->swap(modelist); diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp index 8ad8aeffe..0151a5a36 100644 --- a/modules/commands/cs_seen.cpp +++ b/modules/commands/cs_seen.cpp @@ -36,7 +36,7 @@ struct SeenInfo : Serializable { } - ~SeenInfo() + ~SeenInfo() override { database_map::iterator iter = database.find(nick); if (iter != database.end() && iter->second == this) diff --git a/modules/commands/cs_set_misc.cpp b/modules/commands/cs_set_misc.cpp index 2c81a2345..477595ad8 100644 --- a/modules/commands/cs_set_misc.cpp +++ b/modules/commands/cs_set_misc.cpp @@ -176,7 +176,7 @@ class CSSetMisc : public Module me = this; } - ~CSSetMisc() + ~CSSetMisc() override { for (Anope::map<ExtensibleItem<CSMiscData> *>::iterator it = items.begin(); it != items.end(); ++it) delete it->second; diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp index 039e856d3..e2cd82064 100644 --- a/modules/commands/cs_xop.cpp +++ b/modules/commands/cs_xop.cpp @@ -288,7 +288,7 @@ class CommandCSXOP : public Command { } - ~XOPDelCallback() + ~XOPDelCallback() override { if (!deleted) source.Reply(_("No matching entries on %s %s list."), ci->name.c_str(), source.command.c_str()); diff --git a/modules/commands/ms_read.cpp b/modules/commands/ms_read.cpp index a4204e0c2..0fee45e31 100644 --- a/modules/commands/ms_read.cpp +++ b/modules/commands/ms_read.cpp @@ -59,7 +59,7 @@ class MemoListCallback : public NumberList found = false; } - ~MemoListCallback() + ~MemoListCallback() override { if (!found) source.Reply(_("No memos to display.")); diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp index b1c9fa995..1bee6faf8 100644 --- a/modules/commands/ns_ajoin.cpp +++ b/modules/commands/ns_ajoin.cpp @@ -27,7 +27,7 @@ struct AJoinEntry : Serializable AJoinEntry(Extensible *) : Serializable("AJoinEntry") { } - ~AJoinEntry() + ~AJoinEntry() override { AJoinList *channels = owner->GetExt<AJoinList>("ajoinlist"); if (channels) diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp index c2a74e71e..e21d1e6f3 100644 --- a/modules/commands/ns_cert.cpp +++ b/modules/commands/ns_cert.cpp @@ -35,7 +35,7 @@ struct NSCertListImpl : NSCertList public: NSCertListImpl(Extensible *obj) : nc(anope_dynamic_static_cast<NickCore *>(obj)) { } - ~NSCertListImpl() + ~NSCertListImpl() override { ClearCert(); } diff --git a/modules/commands/ns_set_misc.cpp b/modules/commands/ns_set_misc.cpp index f896ba461..db7a1e8ef 100644 --- a/modules/commands/ns_set_misc.cpp +++ b/modules/commands/ns_set_misc.cpp @@ -189,7 +189,7 @@ class NSSetMisc : public Module me = this; } - ~NSSetMisc() + ~NSSetMisc() override { for (Anope::map<ExtensibleItem<NSMiscData> *>::iterator it = items.begin(); it != items.end(); ++it) delete it->second; diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index 4258d4a97..56203e4c1 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -23,7 +23,7 @@ class AkillDelCallback : public NumberList { } - ~AkillDelCallback() + ~AkillDelCallback() override { if (!deleted) source.Reply(_("No matching entries on the AKILL list.")); diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index 89c555565..7721d7815 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -115,7 +115,7 @@ class DefConTimeout : public Timer timeout = this; } - ~DefConTimeout() + ~DefConTimeout() override { timeout = NULL; } diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp index c562815eb..bcc1eaef0 100644 --- a/modules/commands/os_dns.cpp +++ b/modules/commands/os_dns.cpp @@ -29,7 +29,7 @@ struct DNSZone : Serializable zones->push_back(this); } - ~DNSZone() + ~DNSZone() override { std::vector<DNSZone *>::iterator it = std::find(zones->begin(), zones->end(), this); if (it != zones->end()) @@ -104,7 +104,7 @@ class DNSServer : public Serializable dns_servers->push_back(this); } - ~DNSServer() + ~DNSServer() override { std::vector<DNSServer *>::iterator it = std::find(dns_servers->begin(), dns_servers->end(), this); if (it != dns_servers->end()) @@ -743,7 +743,7 @@ class ModuleDNS : public Module } } - ~ModuleDNS() + ~ModuleDNS() override { for (unsigned i = zones->size(); i > 0; --i) delete zones->at(i - 1); diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp index 54323a75e..7c907a9f7 100644 --- a/modules/commands/os_forbid.cpp +++ b/modules/commands/os_forbid.cpp @@ -68,7 +68,7 @@ class MyForbidService : public ForbidService public: MyForbidService(Module *m) : ForbidService(m), forbid_data("ForbidData") { } - ~MyForbidService() + ~MyForbidService() override { std::vector<ForbidData *> f = GetForbids(); for (unsigned i = 0; i < f.size(); ++i) diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp index 512039d83..685e49d36 100644 --- a/modules/commands/os_ignore.cpp +++ b/modules/commands/os_ignore.cpp @@ -15,7 +15,7 @@ struct IgnoreDataImpl : IgnoreData, Serializable { IgnoreDataImpl() : Serializable("IgnoreData") { } - ~IgnoreDataImpl(); + ~IgnoreDataImpl() override; void Serialize(Serialize::Data &data) const override; static Serializable* Unserialize(Serializable *obj, Serialize::Data &data); }; diff --git a/modules/commands/os_info.cpp b/modules/commands/os_info.cpp index c1c7f85fb..95d48ba16 100644 --- a/modules/commands/os_info.cpp +++ b/modules/commands/os_info.cpp @@ -19,7 +19,7 @@ struct OperInfo : Serializable OperInfo(const Anope::string &t, const Anope::string &i, const Anope::string &a, time_t c) : Serializable("OperInfo"), target(t), info(i), adder(a), created(c) { } - ~OperInfo(); + ~OperInfo() override; void Serialize(Serialize::Data &data) const override { diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index 4cc98cc27..373774570 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -99,7 +99,7 @@ class MyNewsService : public NewsService public: MyNewsService(Module *m) : NewsService(m) { } - ~MyNewsService() + ~MyNewsService() override { for (unsigned i = 0; i < 3; ++i) for (unsigned j = 0; j < newsItems[i].size(); ++j) @@ -280,13 +280,13 @@ class NewsBase : public Command this->SetSyntax("LIST"); } - virtual ~NewsBase() + ~NewsBase() override { } - virtual void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) = 0; + void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override = 0; - virtual bool OnHelp(CommandSource &source, const Anope::string &subcommand) = 0; + bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; }; class CommandOSLogonNews : public NewsBase diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp index 7ba6cacdf..0d17b0cd6 100644 --- a/modules/commands/os_oper.cpp +++ b/modules/commands/os_oper.cpp @@ -265,7 +265,7 @@ class OSOper : public Module { } - ~OSOper() + ~OSOper() override { for (nickcore_map::const_iterator it = NickCoreList->begin(), it_end = NickCoreList->end(); it != it_end; ++it) { diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp index 22d09344e..517b22279 100644 --- a/modules/commands/os_session.cpp +++ b/modules/commands/os_session.cpp @@ -139,7 +139,7 @@ class ExceptionDelCallback : public NumberList { } - ~ExceptionDelCallback() + ~ExceptionDelCallback() override { if (!deleted) source.Reply(_("No matching entries on session-limit exception list.")); @@ -149,7 +149,7 @@ class ExceptionDelCallback : public NumberList source.Reply(_("Deleted %d entries from session-limit exception list."), deleted); } - virtual void HandleNumber(unsigned number) override + void HandleNumber(unsigned number) override { if (!number || number > session_service->GetExceptions().size()) return; diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp index 7151551b7..87a952a31 100644 --- a/modules/commands/os_sxline.cpp +++ b/modules/commands/os_sxline.cpp @@ -22,7 +22,7 @@ class SXLineDelCallback : public NumberList { } - ~SXLineDelCallback() + ~SXLineDelCallback() override { if (!deleted) source.Reply(_("No matching entries on the %s list."), source.command.c_str()); @@ -253,7 +253,7 @@ class CommandOSSXLineBase : public Command return; } - virtual bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; + bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; }; class CommandOSSNLine : public CommandOSSXLineBase diff --git a/modules/database/db_redis.cpp b/modules/database/db_redis.cpp index f8ed3707c..974e9ea3f 100644 --- a/modules/database/db_redis.cpp +++ b/modules/database/db_redis.cpp @@ -19,7 +19,7 @@ class Data : public Serialize::Data public: std::map<Anope::string, std::stringstream *> data; - ~Data() + ~Data() override { for (std::map<Anope::string, std::stringstream *>::iterator it = data.begin(), it_end = data.end(); it != it_end; ++it) delete it->second; diff --git a/modules/m_dns.cpp b/modules/m_dns.cpp index 45c3dbd26..6df332da0 100644 --- a/modules/m_dns.cpp +++ b/modules/m_dns.cpp @@ -453,7 +453,7 @@ namespace DNS class ReplySocket : public virtual Socket { public: - virtual ~ReplySocket() = default; + ~ReplySocket() override = default; virtual void Reply(Packet *p) = 0; }; } @@ -479,7 +479,7 @@ class TCPSocket : public ListenSocket Log(LOG_DEBUG_2) << "Resolver: New client from " << addr.addr(); } - ~Client() + ~Client() override { Log(LOG_DEBUG_2) << "Resolver: Exiting client from " << clientaddr.addr(); delete packet; @@ -560,7 +560,7 @@ class UDPSocket : public ReplySocket public: UDPSocket(Manager *m, const Anope::string &ip, int port) : Socket(-1, ip.find(':') != Anope::string::npos, SOCK_DGRAM), manager(m) { } - ~UDPSocket() + ~UDPSocket() override { for (unsigned i = 0; i < packets.size(); ++i) delete packets[i]; @@ -666,7 +666,7 @@ class MyManager : public Manager, public Timer { } - ~MyManager() + ~MyManager() override { delete udpsock; delete tcpsock; @@ -1022,7 +1022,7 @@ class ModuleDNS : public Module } - ~ModuleDNS() + ~ModuleDNS() override { for (std::map<int, Socket *>::const_iterator it = SocketEngine::Sockets.begin(), it_end = SocketEngine::Sockets.end(); it != it_end;) { diff --git a/modules/m_httpd.cpp b/modules/m_httpd.cpp index 97b0ae150..d80da48f4 100644 --- a/modules/m_httpd.cpp +++ b/modules/m_httpd.cpp @@ -99,7 +99,7 @@ class MyHTTPClient : public HTTPClient Log(LOG_DEBUG, "httpd") << "Accepted connection " << f << " from " << a.addr(); } - ~MyHTTPClient() + ~MyHTTPClient() override { Log(LOG_DEBUG, "httpd") << "Closing connection " << this->GetFD() << " from " << this->ip; } @@ -344,7 +344,7 @@ class HTTPD : public Module } - ~HTTPD() + ~HTTPD() override { for (std::map<int, Socket *>::const_iterator it = SocketEngine::Sockets.begin(), it_end = SocketEngine::Sockets.end(); it != it_end;) { diff --git a/modules/m_proxyscan.cpp b/modules/m_proxyscan.cpp index 0f3e5208b..052512f98 100644 --- a/modules/m_proxyscan.cpp +++ b/modules/m_proxyscan.cpp @@ -69,12 +69,12 @@ class ProxyConnect : public ConnectionSocket proxies.insert(this); } - ~ProxyConnect() + ~ProxyConnect() override { proxies.erase(this); } - virtual void OnConnect() override = 0; + void OnConnect() override = 0; virtual const Anope::string GetType() const = 0; protected: @@ -227,7 +227,7 @@ class ModuleProxyScan : public Module this->listener = NULL; } - ~ModuleProxyScan() + ~ModuleProxyScan() override { for (std::set<ProxyConnect *>::iterator it = ProxyConnect::proxies.begin(), it_end = ProxyConnect::proxies.end(); it != it_end;) { diff --git a/modules/m_redis.cpp b/modules/m_redis.cpp index 8ef8667d9..064f406e1 100644 --- a/modules/m_redis.cpp +++ b/modules/m_redis.cpp @@ -23,7 +23,7 @@ class RedisSocket : public BinarySocket, public ConnectionSocket RedisSocket(MyRedisService *pro, bool v6) : Socket(-1, v6), provider(pro) { } - ~RedisSocket(); + ~RedisSocket() override; void OnConnect() override; void OnError(const Anope::string &error) override; @@ -38,7 +38,7 @@ class Transaction : public Interface Transaction(Module *creator) : Interface(creator) { } - ~Transaction() + ~Transaction() override { for (unsigned i = 0; i < interfaces.size(); ++i) { @@ -96,7 +96,7 @@ class MyRedisService : public Provider sub->Connect(host, port); } - ~MyRedisService() + ~MyRedisService() override { if (sock) { @@ -533,7 +533,7 @@ class ModuleRedis : public Module { } - ~ModuleRedis() + ~ModuleRedis() override { for (std::map<Anope::string, MyRedisService *>::iterator it = services.begin(); it != services.end(); ++it) { diff --git a/modules/m_sasl.cpp b/modules/m_sasl.cpp index 53cc070cd..dbad95926 100644 --- a/modules/m_sasl.cpp +++ b/modules/m_sasl.cpp @@ -131,7 +131,7 @@ class SASLService : public SASL::Service, public Timer public: SASLService(Module *o) : SASL::Service(o), Timer(o, 60, Anope::CurTime, true) { } - ~SASLService() + ~SASLService() override { for (std::map<Anope::string, Session *>::iterator it = sessions.begin(); it != sessions.end(); it++) delete it->second; @@ -332,7 +332,7 @@ class ModuleSASL : public Module catch (ModuleException &) { } } - ~ModuleSASL() + ~ModuleSASL() override { delete external; } diff --git a/modules/m_xmlrpc.cpp b/modules/m_xmlrpc.cpp index a9ec95102..1855cda2e 100644 --- a/modules/m_xmlrpc.cpp +++ b/modules/m_xmlrpc.cpp @@ -208,7 +208,7 @@ class ModuleXMLRPC : public Module } - ~ModuleXMLRPC() + ~ModuleXMLRPC() override { if (httpref) httpref->UnregisterPage(&xmlrpcinterface); diff --git a/modules/m_xmlrpc_main.cpp b/modules/m_xmlrpc_main.cpp index 157d9c88e..a01e4969c 100644 --- a/modules/m_xmlrpc_main.cpp +++ b/modules/m_xmlrpc_main.cpp @@ -300,7 +300,7 @@ class ModuleXMLRPCMain : public Module xmlrpc->Register(&stats); } - ~ModuleXMLRPCMain() + ~ModuleXMLRPCMain() override { if (xmlrpc) xmlrpc->Unregister(&stats); diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index dc43eb0c2..c93f5e39a 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -441,7 +441,7 @@ class ProtoPlexus : public Module this->AddModes(); } - ~ProtoPlexus() + ~ProtoPlexus() override { m_hybrid = ModuleManager::FindModule("hybrid"); ModuleManager::UnloadModule(m_hybrid, NULL); diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index 82b0c4208..490284407 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -363,7 +363,7 @@ class ProtoRatbox : public Module this->AddModes(); } - ~ProtoRatbox() + ~ProtoRatbox() override { m_hybrid = ModuleManager::FindModule("hybrid"); ModuleManager::UnloadModule(m_hybrid, NULL); diff --git a/modules/protocol/solanum.cpp b/modules/protocol/solanum.cpp index af457bec2..e83f231dd 100644 --- a/modules/protocol/solanum.cpp +++ b/modules/protocol/solanum.cpp @@ -401,7 +401,7 @@ class ProtoSolanum : public Module this->AddModes(); } - ~ProtoSolanum() + ~ProtoSolanum() override { m_ratbox = ModuleManager::FindModule("ratbox"); ModuleManager::UnloadModule(m_ratbox, NULL); diff --git a/modules/pseudoclients/nickserv.cpp b/modules/pseudoclients/nickserv.cpp index 5cf6978bf..e17f8a5ba 100644 --- a/modules/pseudoclients/nickserv.cpp +++ b/modules/pseudoclients/nickserv.cpp @@ -29,7 +29,7 @@ class NickServCollide : public Timer collides.insert(this); } - ~NickServCollide() + ~NickServCollide() override { collides.erase(this); } @@ -68,7 +68,7 @@ class NickServHeld : public Timer n->Extend<bool>("HELD"); } - void Tick(time_t) + void Tick(time_t) override { if (na) na->Shrink<bool>("HELD"); @@ -101,7 +101,7 @@ class NickServRelease : public User, public Timer IRCD->SendClientIntroduction(this); } - ~NickServRelease() + ~NickServRelease() override { IRCD->SendQuit(this, ""); NickServReleases.erase(this->nick); @@ -137,7 +137,7 @@ class NickServCore : public Module, public NickServService { } - ~NickServCore() + ~NickServCore() override { OnShutdown(); } diff --git a/modules/pseudoclients/operserv.cpp b/modules/pseudoclients/operserv.cpp index c49c914b9..b37247864 100644 --- a/modules/pseudoclients/operserv.cpp +++ b/modules/pseudoclients/operserv.cpp @@ -200,7 +200,7 @@ class OperServCore : public Module XLineManager::RegisterXLineManager(&snlines); } - ~OperServCore() + ~OperServCore() override { this->sglines.Clear(); this->sqlines.Clear(); diff --git a/modules/webcpanel/webcpanel.cpp b/modules/webcpanel/webcpanel.cpp index 3a286f27d..b381eecdc 100644 --- a/modules/webcpanel/webcpanel.cpp +++ b/modules/webcpanel/webcpanel.cpp @@ -202,7 +202,7 @@ class ModuleWebCPanel : public Module } } - ~ModuleWebCPanel() + ~ModuleWebCPanel() override { if (provider) { diff --git a/src/modes.cpp b/src/modes.cpp index 37f3a06bc..9bc07097b 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -303,7 +303,7 @@ void StackerInfo::AddMode(Mode *mode, bool set, const Anope::string ¶m) static class ModePipe : public Pipe { public: - void OnNotify() + void OnNotify() override { ModeManager::ProcessModes(); } diff --git a/src/uplink.cpp b/src/uplink.cpp index e1c26c1da..019ca8454 100644 --- a/src/uplink.cpp +++ b/src/uplink.cpp @@ -22,7 +22,7 @@ class ReconnectTimer : public Timer public: ReconnectTimer(int wait) : Timer(wait) { } - void Tick(time_t) + void Tick(time_t) override { try { |