summaryrefslogtreecommitdiff
path: root/src/core/pool_func.hpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-02-19 23:05:47 +0000
committersmatz <smatz@openttd.org>2011-02-19 23:05:47 +0000
commit756cc6cf651aa5650f055c70f31f7e07391be8c6 (patch)
tree8bf5af85e6523ad91ce99606e2b068b9f7513976 /src/core/pool_func.hpp
parent642fb19d4fe4fbb249ddc314f75a35282ce6d28d (diff)
downloadopenttd-756cc6cf651aa5650f055c70f31f7e07391be8c6.tar.xz
(svn r22116) -Codechange: use PoolBase::Clean() at more places
Diffstat (limited to 'src/core/pool_func.hpp')
-rw-r--r--src/core/pool_func.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/pool_func.hpp b/src/core/pool_func.hpp
index 299aee86c..0d9c23165 100644
--- a/src/core/pool_func.hpp
+++ b/src/core/pool_func.hpp
@@ -17,14 +17,15 @@
#include "pool_type.hpp"
#define DEFINE_POOL_METHOD(type) \
- template <class Titem, typename Tindex, size_t Tgrowth_step, size_t Tmax_size, bool Tcache, bool Tzero> \
- type Pool<Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero>
+ template <class Titem, typename Tindex, size_t Tgrowth_step, size_t Tmax_size, PoolType Tpool_type, bool Tcache, bool Tzero> \
+ type Pool<Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero>
/**
* Create a clean pool.
* @param name The name for the pool.
*/
DEFINE_POOL_METHOD(inline)::Pool(const char *name) :
+ PoolBase(Tpool_type),
name(name),
size(0),
first_free(0),