contentstorage/caclient/src/caiconcache.cpp
changeset 107 b34d53f6acdf
parent 99 7aaf39b772ac
child 112 dbfb5e38438b
equal deleted inserted replaced
106:e78d6e055a5b 107:b34d53f6acdf
   114  */
   114  */
   115 
   115 
   116 HbIcon CaIconCache::icon(const CaEntry &entry, const QSize &size)
   116 HbIcon CaIconCache::icon(const CaEntry &entry, const QSize &size)
   117 {
   117 {
   118     CACLIENTTEST_FUNC_ENTRY("CaIconCache::icon");
   118     CACLIENTTEST_FUNC_ENTRY("CaIconCache::icon");
   119     HbIcon icon;
   119     HbIcon result;
   120     icon = *mCache.object(key(entry,size));
   120     if (HbIcon* tmp = mCache.object(key(entry,size))) {
       
   121         result = *tmp;
       
   122     }
   121     CACLIENTTEST_FUNC_EXIT("CaIconCache::icon");
   123     CACLIENTTEST_FUNC_EXIT("CaIconCache::icon");
   122     return icon;
   124     return result; 
   123 }
   125 }
   124 
   126 
   125 /*!
   127 /*!
   126  Insert an icon to a cache
   128  Insert an icon to a cache
   127  \param entry an entry
   129  \param entry an entry