diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2012-09-24 15:54:49 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2012-09-24 15:54:49 -0400 |
| commit | 38ad523f91c5b89cebd01e6e0f61ea8859c02253 (patch) | |
| tree | 14f518edc9ab9a54a9dc1c9a5f4b0bdc3b313a29 /modules/extra/sql.h | |
| parent | a71e2fb64ed87559221a175d4dfd822d683ebb3d (diff) | |
Fix a few oddball warnings that came up from clang, and also make it so webcpanel.so can be compiled under Mac OS X.
Diffstat (limited to 'modules/extra/sql.h')
| -rw-r--r-- | modules/extra/sql.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/extra/sql.h b/modules/extra/sql.h index 62d7b73c0..7e10c7150 100644 --- a/modules/extra/sql.h +++ b/modules/extra/sql.h @@ -32,7 +32,7 @@ struct SQLQuery this->parameters.clear(); return *this; } - + bool operator==(const SQLQuery &other) const { return this->query == other.query; @@ -98,7 +98,7 @@ class SQLResult std::map<Anope::string, Anope::string>::const_iterator it = rows.find(col); if (it == rows.end()) throw SQLException("Unknown column name in SQLResult: " + col); - + return it->second; } }; @@ -111,6 +111,7 @@ class SQLInterface Module *owner; SQLInterface(Module *m) : owner(m) { } + virtual ~SQLInterface() { } virtual void OnResult(const SQLResult &r) = 0; virtual void OnError(const SQLResult &r) = 0; |
