mirror of https://github.com/OpenTTD/OpenTTD
(svn r22136) -Fix (r22112): Silence compiler warning about non-virtual destructor
parent
19b7249ade
commit
ac0700c564
|
@ -16,7 +16,7 @@
|
||||||
* Destructor removes this object from the pool vector and
|
* Destructor removes this object from the pool vector and
|
||||||
* deletes the vector itself if this was the last item removed.
|
* deletes the vector itself if this was the last item removed.
|
||||||
*/
|
*/
|
||||||
PoolBase::~PoolBase()
|
/* virtual */ PoolBase::~PoolBase()
|
||||||
{
|
{
|
||||||
PoolVector *pools = PoolBase::GetPools();
|
PoolVector *pools = PoolBase::GetPools();
|
||||||
pools->Erase(pools->Find(this));
|
pools->Erase(pools->Find(this));
|
||||||
|
|
|
@ -53,7 +53,7 @@ struct PoolBase {
|
||||||
*PoolBase::GetPools()->Append() = this;
|
*PoolBase::GetPools()->Append() = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
~PoolBase();
|
virtual ~PoolBase();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual method that deletes all items in the pool.
|
* Virtual method that deletes all items in the pool.
|
||||||
|
|
Loading…
Reference in New Issue