summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2011-02-24 06:57:55 +0000
committerplanetmaker <planetmaker@openttd.org>2011-02-24 06:57:55 +0000
commitac0700c56413de6eb938991beae48427687b5fc0 (patch)
tree8d644e2a9a3c4ebbeeeca8cef7960f1913ab4216 /src/core
parent19b7249adee1dba623ba4ee69266cd13888deb3d (diff)
downloadopenttd-ac0700c56413de6eb938991beae48427687b5fc0.tar.xz
(svn r22136) -Fix (r22112): Silence compiler warning about non-virtual destructor
Diffstat (limited to 'src/core')
-rw-r--r--src/core/pool_func.cpp2
-rw-r--r--src/core/pool_type.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/pool_func.cpp b/src/core/pool_func.cpp
index 999dbe3d9..fa410850f 100644
--- a/src/core/pool_func.cpp
+++ b/src/core/pool_func.cpp
@@ -16,7 +16,7 @@
* Destructor removes this object from the pool vector and
* deletes the vector itself if this was the last item removed.
*/
-PoolBase::~PoolBase()
+/* virtual */ PoolBase::~PoolBase()
{
PoolVector *pools = PoolBase::GetPools();
pools->Erase(pools->Find(this));
diff --git a/src/core/pool_type.hpp b/src/core/pool_type.hpp
index e5e58238c..f9b1e8230 100644
--- a/src/core/pool_type.hpp
+++ b/src/core/pool_type.hpp
@@ -53,7 +53,7 @@ struct PoolBase {
*PoolBase::GetPools()->Append() = this;
}
- ~PoolBase();
+ virtual ~PoolBase();
/**
* Virtual method that deletes all items in the pool.