modules: use override keyword

Resolves #736
This commit is contained in:
J-P Nurmi committed 2014-11-05 08:00:02 +01:00
1 parent f7270e8b2e
commit f9318d02cf
57 files changed
+509 -509

No files matched your search

+5 -5
View File
@@ -87,7 +87,7 @@ public:
m_PyZNCModule = NULL;
}
bool OnLoad(const CString& sArgsi, CString& sMessage) {
bool OnLoad(const CString& sArgsi, CString& sMessage) override {
CString sModPath, sTmp;
#ifdef __CYGWIN__
CString sDllPath = "modpython/_znc_core.dll";
@@ -144,7 +144,7 @@ public:
}
virtual EModRet OnModuleLoading(const CString& sModName, const CString& sArgs,
CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) {
CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) override {
PyObject* pyFunc = PyObject_GetAttrString(m_PyZNCModule, "load_module");
if (!pyFunc) {
sRetMsg = GetPyExceptionStr();
@@ -194,7 +194,7 @@ public:
return HALT;
}
virtual EModRet OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) {
virtual EModRet OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) override {
CPyModule* pMod = AsPyModule(pModule);
if (pMod) {
CString sModName = pMod->GetModName();
@@ -228,7 +228,7 @@ public:
}
virtual EModRet OnGetModInfo(CModInfo& ModInfo, const CString& sModule,
bool& bSuccess, CString& sRetMsg) {
bool& bSuccess, CString& sRetMsg) override {
PyObject* pyFunc = PyObject_GetAttrString(m_PyZNCModule, "get_mod_info");
if (!pyFunc) {
sRetMsg = GetPyExceptionStr();
@@ -309,7 +309,7 @@ public:
}
}
virtual void OnGetAvailableMods(set<CModInfo>& ssMods, CModInfo::EModuleType eType) {
virtual void OnGetAvailableMods(set<CModInfo>& ssMods, CModInfo::EModuleType eType) override {
CDir Dir;
CModules::ModDirList dirs = CModules::GetModDirs();