summaryrefslogtreecommitdiff
path: root/modules/commands/cs_flags.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-02-18 15:04:26 -0500
committerAdam <Adam@anope.org>2012-02-18 15:04:26 -0500
commitee5cd8493e34a1c049066ead25e9094b30cd49b5 (patch)
tree846c6dcd9bb2c4d721c6290a9b9d6b6ed880acdb /modules/commands/cs_flags.cpp
parent41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff)
Use C++11's explicit override feature if available
Diffstat (limited to 'modules/commands/cs_flags.cpp')
-rw-r--r--modules/commands/cs_flags.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp
index 0e48f59c7..f5dc7fe1c 100644
--- a/modules/commands/cs_flags.cpp
+++ b/modules/commands/cs_flags.cpp
@@ -24,7 +24,7 @@ class FlagsChanAccess : public ChanAccess
{
}
- bool HasPriv(const Anope::string &priv) const
+ bool HasPriv(const Anope::string &priv) const anope_override
{
std::map<Anope::string, char>::iterator it = defaultFlags.find(priv);
if (it != defaultFlags.end() && this->flags.count(it->second) > 0)
@@ -37,7 +37,7 @@ class FlagsChanAccess : public ChanAccess
return Anope::string(this->flags.begin(), this->flags.end());
}
- void Unserialize(const Anope::string &data)
+ void Unserialize(const Anope::string &data) anope_override
{
for (unsigned i = data.length(); i > 0; --i)
this->flags.insert(data[i - 1]);
@@ -65,7 +65,7 @@ class FlagsAccessProvider : public AccessProvider
{
}
- ChanAccess *Create()
+ ChanAccess *Create() anope_override
{
return new FlagsChanAccess(this);
}
@@ -300,7 +300,7 @@ class CommandCSFlags : public Command
this->SetSyntax(_("\037channel\037 CLEAR\002"));
}
- void Execute(CommandSource &source, const std::vector<Anope::string> &params)
+ void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
const Anope::string &chan = params[0];
const Anope::string &cmd = params[1];
@@ -336,7 +336,7 @@ class CommandCSFlags : public Command
this->OnSyntaxError(source, cmd);
}
- bool OnHelp(CommandSource &source, const Anope::string &subcommand)
+ bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
this->SendSyntax(source);
source.Reply(" ");
@@ -394,7 +394,7 @@ class CSFlags : public Module
this->OnReload();
}
- void OnReload()
+ void OnReload() anope_override
{
ConfigReader config;
defaultFlags.clear();