mirror of
https://github.com/anope/anope.git
synced 2026-07-03 15:13:14 +02:00
Replace anope_{final,override} with their C++11 equivalent.
This commit is contained in:
@@ -22,7 +22,7 @@ class XMLRPCIdentifyRequest : public IdentifyRequest
|
||||
public:
|
||||
XMLRPCIdentifyRequest(Module *m, XMLRPCRequest& req, HTTPClient *c, XMLRPCServiceInterface* iface, const Anope::string &acc, const Anope::string &pass) : IdentifyRequest(m, acc, pass), request(req), repl(request.r), client(c), xinterface(iface) { }
|
||||
|
||||
void OnSuccess() anope_override
|
||||
void OnSuccess() override
|
||||
{
|
||||
if (!xinterface || !client)
|
||||
return;
|
||||
@@ -36,7 +36,7 @@ class XMLRPCIdentifyRequest : public IdentifyRequest
|
||||
client->SendReply(&request.r);
|
||||
}
|
||||
|
||||
void OnFail() anope_override
|
||||
void OnFail() override
|
||||
{
|
||||
if (!xinterface || !client)
|
||||
return;
|
||||
@@ -53,7 +53,7 @@ class XMLRPCIdentifyRequest : public IdentifyRequest
|
||||
class MyXMLRPCEvent : public XMLRPCEvent
|
||||
{
|
||||
public:
|
||||
bool Run(XMLRPCServiceInterface *iface, HTTPClient *client, XMLRPCRequest &request) anope_override
|
||||
bool Run(XMLRPCServiceInterface *iface, HTTPClient *client, XMLRPCRequest &request) override
|
||||
{
|
||||
if (request.name == "command")
|
||||
this->DoCommand(iface, client, request);
|
||||
@@ -101,7 +101,7 @@ class MyXMLRPCEvent : public XMLRPCEvent
|
||||
|
||||
XMLRPCommandReply(Anope::string &s) : str(s) { }
|
||||
|
||||
void SendMessage(BotInfo *, const Anope::string &msg) anope_override
|
||||
void SendMessage(BotInfo *, const Anope::string &msg) override
|
||||
{
|
||||
str += msg + "\n";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user