From 9b81f084af2a19da3487fa747bc40f2c4b876845 Mon Sep 17 00:00:00 2001 From: KUDr Date: Sat, 18 Nov 2006 19:20:47 +0000 Subject: (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) --- yapf/array.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yapf/array.hpp') 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 { -- cgit v1.2.3-54-g00ecf