1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 03:56:40 +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
+5 -5
View File
@@ -16,12 +16,12 @@ class SQLSQLInterface : public SQLInterface
public:
SQLSQLInterface(Module *o) : SQLInterface(o) { }
void OnResult(const SQLResult &r)
void OnResult(const SQLResult &r) anope_override
{
Log(LOG_DEBUG) << "SQL successfully executed query: " << r.finished_query;
}
void OnError(const SQLResult &r)
void OnError(const SQLResult &r) anope_override
{
if (!r.GetQuery().query.empty())
Log(LOG_DEBUG) << "Error executing query " << r.finished_query << ": " << r.GetError();
@@ -111,14 +111,14 @@ class DBSQL : public Module
this->OnReload();
}
void OnReload()
void OnReload() anope_override
{
ConfigReader config;
Anope::string engine = config.ReadValue("db_sql", "engine", "", 0);
this->sql = service_reference<SQLProvider>("SQLProvider", engine);
}
EventReturn OnSaveDatabase()
EventReturn OnSaveDatabase() anope_override
{
if (!this->sql)
{
@@ -157,7 +157,7 @@ class DBSQL : public Module
return EVENT_CONTINUE;
}
EventReturn OnLoadDatabase()
EventReturn OnLoadDatabase() anope_override
{
if (!this->sql)
{