modules: use override keyword

Resolves #736
This commit is contained in:
J-P Nurmi
2014-11-05 07:48:24 +01:00
parent f7270e8b2e
commit f9318d02cf
57 changed files with 509 additions and 509 deletions

View File

@@ -32,7 +32,7 @@ public:
virtual ~CBlockUser() {}
virtual bool OnLoad(const CString& sArgs, CString& sMessage) {
virtual bool OnLoad(const CString& sArgs, CString& sMessage) override {
VCString vArgs;
VCString::iterator it;
MCString::iterator it2;
@@ -56,7 +56,7 @@ public:
return true;
}
virtual EModRet OnLoginAttempt(std::shared_ptr<CAuthBase> Auth) {
virtual EModRet OnLoginAttempt(std::shared_ptr<CAuthBase> Auth) override {
if (IsBlocked(Auth->GetUsername())) {
Auth->RefuseLogin(MESSAGE);
return HALT;
@@ -65,7 +65,7 @@ public:
return CONTINUE;
}
void OnModCommand(const CString& sCommand) {
void OnModCommand(const CString& sCommand) override {
if (!GetUser()->IsAdmin()) {
PutModule("Access denied");
} else {
@@ -121,7 +121,7 @@ public:
PutModule("This user is not blocked");
}
bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) {
bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override {
if (sPageName == "webadmin/user" && WebSock.GetSession()->IsAdmin()) {
CString sAction = Tmpl["WebadminAction"];
if (sAction == "display") {