1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 21:16:38 +02:00

Use C++11's explicit override feature if available

This commit is contained in:
Adam
2012-02-18 15:04:26 -05:00
parent 41e8d27602
commit ee5cd8493e
201 changed files with 995 additions and 1003 deletions
+4 -3
View File
@@ -12,6 +12,7 @@
#include "module.h"
#include "../commands/os_session.h"
#include <unistd.h>
Anope::string DatabaseFile;
std::stringstream db_buffer;
@@ -642,13 +643,13 @@ class DBPlain : public Module
}
}
void OnReload()
void OnReload() anope_override
{
ConfigReader config;
DatabaseFile = config.ReadValue("db_plain", "database", "anope.db", 0);
}
EventReturn OnLoadDatabase()
EventReturn OnLoadDatabase() anope_override
{
ReadDatabase();
@@ -659,7 +660,7 @@ class DBPlain : public Module
}
EventReturn OnSaveDatabase()
EventReturn OnSaveDatabase() anope_override
{
BackupDatabase();