summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-08-30 14:29:05 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-08-30 14:29:05 -0700
commit7866096c62f265960d48a61ceb1ad8d53e44400a (patch)
treec38b382a5e5293eccdf27d2c33b214bb3f4a7f9d /includes
parent38833205e4011a8a318b8dc6809621a89ad9f446 (diff)
Adding a few virtual destructors.
Diffstat (limited to 'includes')
-rw-r--r--includes/BLua.h1
-rw-r--r--includes/HttpServer.h2
-rw-r--r--includes/LuaTask.h1
-rw-r--r--includes/Task.h2
4 files changed, 5 insertions, 1 deletions
diff --git a/includes/BLua.h b/includes/BLua.h
index be78660..12e921f 100644
--- a/includes/BLua.h
+++ b/includes/BLua.h
@@ -20,6 +20,7 @@ class LuaObject {
class LuaObjectFactory {
public:
LuaObjectFactory() : m_wantsDestruct(false), m_pushed(false) { }
+ virtual ~LuaObjectFactory() { }
virtual void push(Lua & L);
void pushDestruct(Lua & L);
template<class T>
diff --git a/includes/HttpServer.h b/includes/HttpServer.h
index 7dbf912..6c28910 100644
--- a/includes/HttpServer.h
+++ b/includes/HttpServer.h
@@ -44,7 +44,7 @@ class HttpServer {
class Action {
public:
Action(const Regex & regex, const Regex & host = Regexes::any) : m_regex(regex), m_host(host), m_refCount(0) { }
- ~Action() { AAssert(m_refCount == 0, "Don't delete an Action directly"); }
+ virtual ~Action() { AAssert(m_refCount == 0, "Don't delete an Action directly"); }
struct ActionMatch {
Regex::Captures uri, host;
};
diff --git a/includes/LuaTask.h b/includes/LuaTask.h
index 6dff44e..48cef97 100644
--- a/includes/LuaTask.h
+++ b/includes/LuaTask.h
@@ -12,6 +12,7 @@ class LuaMainTask;
class LuaExecCell {
public:
LuaExecCell() : m_detached(false) { }
+ virtual ~LuaExecCell() { }
void detach() { m_detached = true; }
void exec(LuaMainTask * mainTask);
protected:
diff --git a/includes/Task.h b/includes/Task.h
index 592d5c3..b3f395a 100644
--- a/includes/Task.h
+++ b/includes/Task.h
@@ -27,6 +27,8 @@ class Task;
namespace Events {
class Callback {
+ public:
+ virtual ~Callback() { }
protected:
virtual void gotEvent(BaseEvent *) = 0;
friend class BaseEvent;