| 36 | } |
| 37 | |
| 38 | void CachedIcons::insert(const CachedIcon &cachedIcon) |
| 39 | { |
| 40 | m_cachedIconSet.push_front(cachedIcon); |
| 41 | |
| 42 | if (m_cachedIconSet.size() > m_maxItems) |
| 43 | { |
| 44 | m_cachedIconSet.pop_back(); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | // Replaces an existing cached icon. The icon will also be moved to the |
| 49 | // front of the list, which will stop it from being removed if the list |
no test coverage detected