diff options
author | lordjaxom <lordjaxom> | 2005-01-31 14:40:29 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-31 14:40:29 +0000 |
commit | 3ce6d5c52dc3b35f7fe90d9e2dbe38a680673994 (patch) | |
tree | 7a1bb9223005b3a5d0982dfbd508bd93edf10323 | |
parent | 9d99631814a293a783b9f8a9b389dfe58223e7ad (diff) | |
download | vdr-plugin-text2skin-3ce6d5c52dc3b35f7fe90d9e2dbe38a680673994.tar.gz vdr-plugin-text2skin-3ce6d5c52dc3b35f7fe90d9e2dbe38a680673994.tar.bz2 |
- moved Flush from abstract class to specialisation
-rw-r--r-- | bitmap.h | 5 | ||||
-rw-r--r-- | cache.h | 3 |
2 files changed, 4 insertions, 4 deletions
@@ -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<tBitmapSpec,cText2SkinBitmap*>(MaxItems) {} + virtual ~cBitmapCache() { Flush(); } }; class cText2SkinBitmap { private: - static cBitmapCache mCache; + static cBitmapCache mCache; std::vector<cBitmap*> mBitmaps; int mCurrent; @@ -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<key_type, data_type>::cxCache(uint MaxItems) template<class key_type, class data_type> cxCache<key_type, data_type>::~cxCache() { - Flush(); } template<class key_type, class data_type> |