equal
deleted
inserted
replaced
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 |