1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 18:39:10 +00:00

(svn r22136) -Fix (r22112): Silence compiler warning about non-virtual destructor

This commit is contained in:
planetmaker
2011-02-24 06:57:55 +00:00
parent 19b7249ade
commit ac0700c564
2 changed files with 2 additions and 2 deletions

View File

@@ -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));

View File

@@ -53,7 +53,7 @@ struct PoolBase {
*PoolBase::GetPools()->Append() = this;
}
~PoolBase();
virtual ~PoolBase();
/**
* Virtual method that deletes all items in the pool.