mirror of
https://github.com/anope/anope.git
synced 2026-06-30 14:46:39 +02:00
Replace anope_{final,override} with their C++11 equivalent.
This commit is contained in:
@@ -25,7 +25,7 @@ class Data : public Serialize::Data
|
||||
delete it->second;
|
||||
}
|
||||
|
||||
std::iostream& operator[](const Anope::string &key) anope_override
|
||||
std::iostream& operator[](const Anope::string &key) override
|
||||
{
|
||||
std::stringstream* &stream = data[key];
|
||||
if (!stream)
|
||||
@@ -33,7 +33,7 @@ class Data : public Serialize::Data
|
||||
return *stream;
|
||||
}
|
||||
|
||||
std::set<Anope::string> KeySet() const anope_override
|
||||
std::set<Anope::string> KeySet() const override
|
||||
{
|
||||
std::set<Anope::string> keys;
|
||||
for (std::map<Anope::string, std::stringstream *>::const_iterator it = this->data.begin(), it_end = this->data.end(); it != it_end; ++it)
|
||||
@@ -41,7 +41,7 @@ class Data : public Serialize::Data
|
||||
return keys;
|
||||
}
|
||||
|
||||
size_t Hash() const anope_override
|
||||
size_t Hash() const override
|
||||
{
|
||||
size_t hash = 0;
|
||||
for (std::map<Anope::string, std::stringstream *>::const_iterator it = this->data.begin(), it_end = this->data.end(); it != it_end; ++it)
|
||||
@@ -57,7 +57,7 @@ class TypeLoader : public Interface
|
||||
public:
|
||||
TypeLoader(Module *creator, const Anope::string &t) : Interface(creator), type(t) { }
|
||||
|
||||
void OnResult(const Reply &r) anope_override;
|
||||
void OnResult(const Reply &r) override;
|
||||
};
|
||||
|
||||
class ObjectLoader : public Interface
|
||||
@@ -68,7 +68,7 @@ class ObjectLoader : public Interface
|
||||
public:
|
||||
ObjectLoader(Module *creator, const Anope::string &t, int64_t i) : Interface(creator), type(t), id(i) { }
|
||||
|
||||
void OnResult(const Reply &r) anope_override;
|
||||
void OnResult(const Reply &r) override;
|
||||
};
|
||||
|
||||
class IDInterface : public Interface
|
||||
@@ -77,7 +77,7 @@ class IDInterface : public Interface
|
||||
public:
|
||||
IDInterface(Module *creator, Serializable *obj) : Interface(creator), o(obj) { }
|
||||
|
||||
void OnResult(const Reply &r) anope_override;
|
||||
void OnResult(const Reply &r) override;
|
||||
};
|
||||
|
||||
class Deleter : public Interface
|
||||
@@ -87,7 +87,7 @@ class Deleter : public Interface
|
||||
public:
|
||||
Deleter(Module *creator, const Anope::string &t, int64_t i) : Interface(creator), type(t), id(i) { }
|
||||
|
||||
void OnResult(const Reply &r) anope_override;
|
||||
void OnResult(const Reply &r) override;
|
||||
};
|
||||
|
||||
class Updater : public Interface
|
||||
@@ -97,7 +97,7 @@ class Updater : public Interface
|
||||
public:
|
||||
Updater(Module *creator, const Anope::string &t, int64_t i) : Interface(creator), type(t), id(i) { }
|
||||
|
||||
void OnResult(const Reply &r) anope_override;
|
||||
void OnResult(const Reply &r) override;
|
||||
};
|
||||
|
||||
class ModifiedObject : public Interface
|
||||
@@ -107,7 +107,7 @@ class ModifiedObject : public Interface
|
||||
public:
|
||||
ModifiedObject(Module *creator, const Anope::string &t, int64_t i) : Interface(creator), type(t), id(i) { }
|
||||
|
||||
void OnResult(const Reply &r) anope_override;
|
||||
void OnResult(const Reply &r) override;
|
||||
};
|
||||
|
||||
class SubscriptionListener : public Interface
|
||||
@@ -115,7 +115,7 @@ class SubscriptionListener : public Interface
|
||||
public:
|
||||
SubscriptionListener(Module *creator) : Interface(creator) { }
|
||||
|
||||
void OnResult(const Reply &r) anope_override;
|
||||
void OnResult(const Reply &r) override;
|
||||
};
|
||||
|
||||
class DatabaseRedis : public Module, public Pipe
|
||||
@@ -159,7 +159,7 @@ class DatabaseRedis : public Module, public Pipe
|
||||
}
|
||||
}
|
||||
|
||||
void OnNotify() anope_override
|
||||
void OnNotify() override
|
||||
{
|
||||
for (std::set<Serializable *>::iterator it = this->updated_items.begin(), it_end = this->updated_items.end(); it != it_end; ++it)
|
||||
{
|
||||
@@ -171,13 +171,13 @@ class DatabaseRedis : public Module, public Pipe
|
||||
this->updated_items.clear();
|
||||
}
|
||||
|
||||
void OnReload(Configuration::Conf *conf) anope_override
|
||||
void OnReload(Configuration::Conf *conf) override
|
||||
{
|
||||
Configuration::Block *block = conf->GetModule(this);
|
||||
this->redis = ServiceReference<Provider>("Redis::Provider", block->Get<const Anope::string>("engine", "redis/main"));
|
||||
}
|
||||
|
||||
EventReturn OnLoadDatabase() anope_override
|
||||
EventReturn OnLoadDatabase() override
|
||||
{
|
||||
if (!redis)
|
||||
{
|
||||
@@ -205,7 +205,7 @@ class DatabaseRedis : public Module, public Pipe
|
||||
return EVENT_STOP;
|
||||
}
|
||||
|
||||
void OnSerializeTypeCreate(Serialize::Type *sb) anope_override
|
||||
void OnSerializeTypeCreate(Serialize::Type *sb) override
|
||||
{
|
||||
if (!redis)
|
||||
return;
|
||||
@@ -217,13 +217,13 @@ class DatabaseRedis : public Module, public Pipe
|
||||
redis->SendCommand(new TypeLoader(this, sb->GetName()), args);
|
||||
}
|
||||
|
||||
void OnSerializableConstruct(Serializable *obj) anope_override
|
||||
void OnSerializableConstruct(Serializable *obj) override
|
||||
{
|
||||
this->updated_items.insert(obj);
|
||||
this->Notify();
|
||||
}
|
||||
|
||||
void OnSerializableDestruct(Serializable *obj) anope_override
|
||||
void OnSerializableDestruct(Serializable *obj) override
|
||||
{
|
||||
Serialize::Type *t = obj->GetSerializableType();
|
||||
|
||||
@@ -251,7 +251,7 @@ class DatabaseRedis : public Module, public Pipe
|
||||
this->Notify();
|
||||
}
|
||||
|
||||
void OnSerializableUpdate(Serializable *obj) anope_override
|
||||
void OnSerializableUpdate(Serializable *obj) override
|
||||
{
|
||||
this->updated_items.insert(obj);
|
||||
this->Notify();
|
||||
|
||||
Reference in New Issue
Block a user