From ee5cd8493e34a1c049066ead25e9094b30cd49b5 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 18 Feb 2012 15:04:26 -0500 Subject: Use C++11's explicit override feature if available --- modules/database/db_sql.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/database/db_sql.cpp') diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp index 6022418de..c8379ca12 100644 --- a/modules/database/db_sql.cpp +++ b/modules/database/db_sql.cpp @@ -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", 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) { -- cgit