summaryrefslogtreecommitdiff
path: root/libopie/pim/opimcache.h
Unidiff
Diffstat (limited to 'libopie/pim/opimcache.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/opimcache.h4
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}
54template <class T> 54template <class T>
55T OPimCacheItem<T>::record()const { 55T OPimCacheItem<T>::record()const {
56 return m_t; 56 return m_t;
57} 57}
58template <class T> 58template <class T>
59void OPimCacheItem<T>::setRecord( const T& t ) { 59void OPimCacheItem<T>::setRecord( const T& t ) {
60 m_t = t; 60 m_t = t;
61} 61}
62// Cache 62// Cache
63template <class T> 63template <class T>
64OPimCache<T>::OPimCache() { 64OPimCache<T>::OPimCache()
65 : m_cache(100, 53 )
66{
65 m_cache.setAutoDelete( TRUE ); 67 m_cache.setAutoDelete( TRUE );
66} 68}
67template <class T> 69template <class T>
68OPimCache<T>::~OPimCache() { 70OPimCache<T>::~OPimCache() {
69 71
70} 72}
71template <class T> 73template <class T>
72bool OPimCache<T>::contains(int uid )const { 74bool 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;