From 3ce6d5c52dc3b35f7fe90d9e2dbe38a680673994 Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Mon, 31 Jan 2005 14:40:29 +0000 Subject: - moved Flush from abstract class to specialisation --- bitmap.h | 5 +++-- cache.h | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bitmap.h b/bitmap.h index be29363..9f14120 100644 --- a/bitmap.h +++ b/bitmap.h @@ -1,5 +1,5 @@ /* - * $Id: bitmap.h,v 1.7 2005/01/28 21:26:34 lordjaxom Exp $ + * $Id: bitmap.h,v 1.8 2005/01/31 14:40:29 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_BITMAP_H @@ -57,11 +57,12 @@ protected: public: cBitmapCache(uint MaxItems): cxCache(MaxItems) {} + virtual ~cBitmapCache() { Flush(); } }; class cText2SkinBitmap { private: - static cBitmapCache mCache; + static cBitmapCache mCache; std::vector mBitmaps; int mCurrent; diff --git a/cache.h b/cache.h index 635d206..0bac611 100644 --- a/cache.h +++ b/cache.h @@ -1,5 +1,5 @@ /* - * $Id: cache.h,v 1.6 2005/01/28 23:46:05 lordjaxom Exp $ + * $Id: cache.h,v 1.7 2005/01/31 14:40:29 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_CACHE_HPP @@ -51,7 +51,6 @@ cxCache::cxCache(uint MaxItems) template cxCache::~cxCache() { - Flush(); } template -- cgit v1.2.3