summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 18:48:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 18:48:40 +0000
commit73e972340bee8ea9cdbbe5520b1b461fbce1f121 (patch)
treefbe2e4a7a38555a72e73f2a29ae1b4a273408f7d /src/modules/extra
parentd85ea7eac1580b52981578ea647d0da5b5694f54 (diff)
Making lots of stuff inherit from classbase so we can use it as a holdall class that we can throw around with dynamic_cast<>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4297 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_pgsql.cpp2
-rw-r--r--src/modules/extra/m_sql.cpp2
-rw-r--r--src/modules/extra/m_sql.h6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index 14e32ac36..10dc9fd60 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -83,7 +83,7 @@ enum SQLstatus { CREAD, CWRITE, WREAD, WWRITE };
* until pop() is called.
*/
-class QueryQueue
+class QueryQueue : public classbase
{
private:
std::deque<SQLresult> priority; /* The priority queue */
diff --git a/src/modules/extra/m_sql.cpp b/src/modules/extra/m_sql.cpp
index 22933de07..654d84191 100644
--- a/src/modules/extra/m_sql.cpp
+++ b/src/modules/extra/m_sql.cpp
@@ -37,7 +37,7 @@ using namespace std;
#define mysql_field_count mysql_num_fields
#endif
-class SQLConnection
+class SQLConnection : public classbase
{
protected:
diff --git a/src/modules/extra/m_sql.h b/src/modules/extra/m_sql.h
index 2fa61fbe9..ce9ce7743 100644
--- a/src/modules/extra/m_sql.h
+++ b/src/modules/extra/m_sql.h
@@ -18,7 +18,7 @@ using namespace std;
// so that we can neatly pass information around the
// system.
-class SQLRequest
+class SQLRequest : public classbase
{
protected:
long conn_id;
@@ -65,7 +65,7 @@ class SQLRequest
// Upon completion, an SQLRequest returns an SQLResponse.
-class SQLResult
+class SQLResult : public classbase
{
protected:
int resptype;
@@ -118,7 +118,7 @@ class SQLResult
}
};
-class SQLQuery
+class SQLQuery : public classbase
{
private:
SQLRequest* rowrequest;