From ac0700c56413de6eb938991beae48427687b5fc0 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Thu, 24 Feb 2011 06:57:55 +0000 Subject: [PATCH] (svn r22136) -Fix (r22112): Silence compiler warning about non-virtual destructor --- src/core/pool_func.cpp | 2 +- src/core/pool_type.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/pool_func.cpp b/src/core/pool_func.cpp index 999dbe3d95..fa410850f1 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 e5e58238c7..f9b1e82307 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.