]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sqlv2.h
Make classbase and refcountbase uncopyable; expand comments on their indended uses
[user/henk/code/inspircd.git] / src / modules / m_sqlv2.h
index bcdcb6546fe6e2b3a7e018c32379e84aef158855..05079a8e602f63be218bae9a8614226c65bfb9b3 100644 (file)
@@ -61,7 +61,7 @@ public:
  * The error string varies from database software to database software
  * and should be used to display informational error messages to users.
  */
-class SQLerror : public classbase
+class SQLerror
 {
        /** The error id
         */
@@ -149,7 +149,7 @@ public:
  *
  * SQLrequest foo = SQLrequest(this, target, "databaseid", (SQLquery("SELECT.. ?"), parameter, parameter));
  */
-class SQLquery : public classbase
+class SQLquery
 {
 public:
        /** The query 'format string'
@@ -242,6 +242,11 @@ public:
        {
        }
 
+       // Copy constructor - XXX probably shouldn't be needed
+       SQLrequest(const SQLrequest& o)
+               : Request(o.source, o.dest, SQLREQID), query(o.query), dbid(o.dbid), pri(o.pri), cancel(o.cancel),
+               id(o.id), error(o.error) {}
+
        /** Set the priority of a request.
         */
        void Priority(bool p = true)
@@ -489,7 +494,7 @@ bool operator!= (const SQLhost& l, const SQLhost& r)
  * until pop() is called.
  */
 
-class QueryQueue : public classbase
+class QueryQueue
 {
 private:
        typedef std::deque<SQLrequest*> ReqDeque;