1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 16:13:13 +02:00

Use C++11's explicit override feature if available

This commit is contained in:
Adam
2012-02-18 15:04:26 -05:00
parent 41e8d27602
commit ee5cd8493e
201 changed files with 995 additions and 1003 deletions
+6 -6
View File
@@ -14,7 +14,7 @@ class MyXMLRPCClientSocket : public XMLRPCClientSocket
{
}
bool Read(const Anope::string &message)
bool Read(const Anope::string &message) anope_override
{
if (message.find("xml version") != Anope::string::npos)
this->in_query = true;
@@ -100,7 +100,7 @@ class MyXMLRPCListenSocket : public XMLRPCListenSocket
listen_sockets.erase(it);
}
ClientSocket *OnAccept(int fd, const sockaddrs &addr)
ClientSocket *OnAccept(int fd, const sockaddrs &addr) anope_override
{
MyXMLRPCClientSocket *socket = new MyXMLRPCClientSocket(this, fd, addr);
@@ -150,7 +150,7 @@ class MyXMLRPCServiceInterface : public XMLRPCServiceInterface
this->events.erase(it);
}
void Reply(XMLRPCClientSocket *source, XMLRPCRequest *request)
void Reply(XMLRPCClientSocket *source, XMLRPCRequest *request) anope_override
{
if (!request->id.empty())
request->reply("id", request->id);
@@ -174,7 +174,7 @@ class MyXMLRPCServiceInterface : public XMLRPCServiceInterface
Log(LOG_DEBUG) << reply;
}
Anope::string Sanitize(const Anope::string &string)
Anope::string Sanitize(const Anope::string &string) anope_override
{
static struct special_chars
{
@@ -204,7 +204,7 @@ class MyXMLRPCServiceInterface : public XMLRPCServiceInterface
return ret;
}
void RunXMLRPC(XMLRPCClientSocket *source, XMLRPCRequest *request)
void RunXMLRPC(XMLRPCClientSocket *source, XMLRPCRequest *request) anope_override
{
for (unsigned i = 0; i < this->events.size(); ++i)
{
@@ -262,7 +262,7 @@ class ModuleXMLRPC : public Module
listen_sockets.clear();
}
void OnReload()
void OnReload() anope_override
{
ConfigReader config;