diff options
author | KUDr <KUDr@openttd.org> | 2006-11-18 19:20:47 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-11-18 19:20:47 +0000 |
commit | 75f99b0abbb981d822ea33c020b06396ea3656be (patch) | |
tree | 0dcbe68a8fa0166ef30d7a7f8870a502837bfa23 /yapf/array.hpp | |
parent | 7fe387708ff265897624cbd318b87cc51bf50ce1 (diff) | |
download | openttd-75f99b0abbb981d822ea33c020b06396ea3656be.tar.xz |
(svn r7210) -CodeChange: [YAPF] the global cache object is now not destroyed/recreated whenever the cache is invalidated. It now supports Flush() method that is used instead. It should also fix mem-leak warning produced by valgrind (Tron)
Diffstat (limited to 'yapf/array.hpp')
-rw-r--r-- | yapf/array.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yapf/array.hpp b/yapf/array.hpp index d6fe2a75f..e8eff1c8c 100644 --- a/yapf/array.hpp +++ b/yapf/array.hpp @@ -24,6 +24,8 @@ public: /** implicit constructor */ FORCEINLINE CArrayT() { } + /** Clear (destroy) all items */ + FORCEINLINE void Clear() {m_a.Clear();} /** Return actual number of items */ FORCEINLINE int Size() const { |