diff options
author | Adam <Adam@anope.org> | 2012-02-18 15:04:26 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-18 15:04:26 -0500 |
commit | ee5cd8493e34a1c049066ead25e9094b30cd49b5 (patch) | |
tree | 846c6dcd9bb2c4d721c6290a9b9d6b6ed880acdb /modules/database/db_sql_live_read.cpp | |
parent | 41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff) |
Use C++11's explicit override feature if available
Diffstat (limited to 'modules/database/db_sql_live_read.cpp')
-rw-r--r-- | modules/database/db_sql_live_read.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/database/db_sql_live_read.cpp b/modules/database/db_sql_live_read.cpp index e79e4c27d..38e5f6fef 100644 --- a/modules/database/db_sql_live_read.cpp +++ b/modules/database/db_sql_live_read.cpp @@ -19,7 +19,7 @@ class SQLCache : public Timer return false; } - void Tick(time_t) + void Tick(time_t) anope_override { for (cache_map::iterator it = this->cache.begin(), next_it; it != this->cache.end(); it = next_it) { @@ -59,21 +59,21 @@ class MySQLLiveModule : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } - void OnReload() + void OnReload() anope_override { ConfigReader config; Anope::string engine = config.ReadValue("db_sql", "engine", "", 0); this->SQL = service_reference<SQLProvider>("SQLProvider", engine); } - void OnShutdown() + void OnShutdown() anope_override { Implementation i[] = { I_OnFindChan, I_OnFindNick, I_OnFindCore }; for (size_t j = 0; j < 3; ++j) ModuleManager::Detach(i[j], this); } - void OnFindChan(const Anope::string &chname) + void OnFindChan(const Anope::string &chname) anope_override { if (chan_cache.Check(chname)) return; @@ -107,7 +107,7 @@ class MySQLLiveModule : public Module } } - void OnFindNick(const Anope::string &nick) + void OnFindNick(const Anope::string &nick) anope_override { if (nick_cache.Check(nick)) return; @@ -141,7 +141,7 @@ class MySQLLiveModule : public Module } } - void OnFindCore(const Anope::string &nick) + void OnFindCore(const Anope::string &nick) anope_override { if (core_cache.Check(nick)) return; |