-rw-r--r-- | libopie/pim/opimcache.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libopie/pim/opimcache.h b/libopie/pim/opimcache.h index 067f6e7..839550c 100644 --- a/libopie/pim/opimcache.h +++ b/libopie/pim/opimcache.h | |||
@@ -52,25 +52,27 @@ OPimCacheItem<T>::~OPimCacheItem() { | |||
52 | 52 | ||
53 | } | 53 | } |
54 | template <class T> | 54 | template <class T> |
55 | T OPimCacheItem<T>::record()const { | 55 | T OPimCacheItem<T>::record()const { |
56 | return m_t; | 56 | return m_t; |
57 | } | 57 | } |
58 | template <class T> | 58 | template <class T> |
59 | void OPimCacheItem<T>::setRecord( const T& t ) { | 59 | void OPimCacheItem<T>::setRecord( const T& t ) { |
60 | m_t = t; | 60 | m_t = t; |
61 | } | 61 | } |
62 | // Cache | 62 | // Cache |
63 | template <class T> | 63 | template <class T> |
64 | OPimCache<T>::OPimCache() { | 64 | OPimCache<T>::OPimCache() |
65 | : m_cache(100, 53 ) | ||
66 | { | ||
65 | m_cache.setAutoDelete( TRUE ); | 67 | m_cache.setAutoDelete( TRUE ); |
66 | } | 68 | } |
67 | template <class T> | 69 | template <class T> |
68 | OPimCache<T>::~OPimCache() { | 70 | OPimCache<T>::~OPimCache() { |
69 | 71 | ||
70 | } | 72 | } |
71 | template <class T> | 73 | template <class T> |
72 | bool OPimCache<T>::contains(int uid )const { | 74 | bool OPimCache<T>::contains(int uid )const { |
73 | Item* it = m_cache.find( uid, FALSE ); | 75 | Item* it = m_cache.find( uid, FALSE ); |
74 | if (!it) | 76 | if (!it) |
75 | return false; | 77 | return false; |
76 | return true; | 78 | return true; |