diff options
| author | Adam <Adam@anope.org> | 2012-02-18 15:04:26 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-02-18 15:04:26 -0500 |
| commit | ee5cd8493e34a1c049066ead25e9094b30cd49b5 (patch) | |
| tree | 846c6dcd9bb2c4d721c6290a9b9d6b6ed880acdb /modules/encryption | |
| parent | 41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff) | |
Use C++11's explicit override feature if available
Diffstat (limited to 'modules/encryption')
| -rw-r--r-- | modules/encryption/enc_md5.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_none.cpp | 6 | ||||
| -rw-r--r-- | modules/encryption/enc_old.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_sha1.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_sha256.cpp | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/modules/encryption/enc_md5.cpp b/modules/encryption/enc_md5.cpp index 8e676cb3f..0831fea22 100644 --- a/modules/encryption/enc_md5.cpp +++ b/modules/encryption/enc_md5.cpp @@ -323,7 +323,7 @@ class EMD5 : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } - EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) + EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) anope_override { MD5_CTX context; char digest[17] = ""; @@ -339,7 +339,7 @@ class EMD5 : public Module return EVENT_ALLOW; } - EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) + EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { NickAlias *na = findnick(account); NickCore *nc = na ? na->nc : NULL; diff --git a/modules/encryption/enc_none.cpp b/modules/encryption/enc_none.cpp index 7fde78b37..e528e821c 100644 --- a/modules/encryption/enc_none.cpp +++ b/modules/encryption/enc_none.cpp @@ -20,7 +20,7 @@ class ENone : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } - EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) + EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) anope_override { Anope::string buf = "plain:"; Anope::string cpass; @@ -31,7 +31,7 @@ class ENone : public Module return EVENT_ALLOW; } - EventReturn OnDecrypt(const Anope::string &hashm, const Anope::string &src, Anope::string &dest) + EventReturn OnDecrypt(const Anope::string &hashm, const Anope::string &src, Anope::string &dest) anope_override { if (!hashm.equals_cs("plain")) return EVENT_CONTINUE; @@ -41,7 +41,7 @@ class ENone : public Module return EVENT_ALLOW; } - EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) + EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { NickAlias *na = findnick(account); NickCore *nc = na ? na->nc : NULL; diff --git a/modules/encryption/enc_old.cpp b/modules/encryption/enc_old.cpp index b3de67439..9b1dad701 100644 --- a/modules/encryption/enc_old.cpp +++ b/modules/encryption/enc_old.cpp @@ -328,7 +328,7 @@ class EOld : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } - EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) + EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) anope_override { MD5_CTX context; char digest[33] = "", digest2[17] = ""; @@ -349,7 +349,7 @@ class EOld : public Module return EVENT_ALLOW; } - EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) + EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { NickAlias *na = findnick(account); NickCore *nc = na ? na->nc : NULL; diff --git a/modules/encryption/enc_sha1.cpp b/modules/encryption/enc_sha1.cpp index a0854d762..d5d49b63e 100644 --- a/modules/encryption/enc_sha1.cpp +++ b/modules/encryption/enc_sha1.cpp @@ -176,7 +176,7 @@ class ESHA1 : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } - EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) + EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) anope_override { SHA1_CTX context; char digest[21] = ""; @@ -192,7 +192,7 @@ class ESHA1 : public Module return EVENT_ALLOW; } - EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) + EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { NickAlias *na = findnick(account); NickCore *nc = na ? na->nc : NULL; diff --git a/modules/encryption/enc_sha256.cpp b/modules/encryption/enc_sha256.cpp index d77cd072d..aa31dc9c3 100644 --- a/modules/encryption/enc_sha256.cpp +++ b/modules/encryption/enc_sha256.cpp @@ -257,7 +257,7 @@ class ESHA256 : public Module use_iv = false; } - EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) + EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) anope_override { char digest[SHA256_DIGEST_SIZE + 1]; SHA256Context ctx; @@ -278,7 +278,7 @@ class ESHA256 : public Module return EVENT_ALLOW; } - EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) + EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { NickAlias *na = findnick(account); NickCore *nc = na ? na->nc : NULL; |
