summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJuan Picca <jumapico@gmail.com>2014-11-17 10:48:32 -0200
committerTakeshi Abe <tabe@fixedpoint.jp>2014-11-25 03:08:04 +0000
commitee42495de1279f9966dd2305966ab96711403463 (patch)
treed006a24fffd9cc2c805556fd7d793ff468679793 /sd
parent46e6f78f2b7595e7009975a2365395a74ca2df83 (diff)
fdo#75757: remove inheritance to std::map
Change-Id: I9dfabddf4b51994c1ae078582dec3f385e7d1a5c Reviewed-on: https://gerrit.libreoffice.org/12513 Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp> Tested-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
index 23abe792dd6f..feb4f02753ac 100644
--- a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
+++ b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx
@@ -135,10 +135,21 @@ public:
/** The recently used caches are stored in one queue for each document.
*/
class PageCacheManager::RecentlyUsedPageCaches
- : public ::std::map<DocumentKey,RecentlyUsedQueue>
{
public:
- RecentlyUsedPageCaches (void) {};
+ typedef DocumentKey key_type;
+ typedef RecentlyUsedQueue mapped_type;
+ typedef std::pair<const key_type,mapped_type> value_type;
+ typedef std::map<key_type,mapped_type>::iterator iterator;
+private:
+ std::map<key_type,mapped_type> maMap;
+public:
+ RecentlyUsedPageCaches () {};
+
+ iterator end() { return maMap.end(); }
+ void clear() { maMap.clear(); }
+ iterator find(const key_type& key) { return maMap.find(key); }
+ std::pair<iterator,bool> insert(const value_type& value) { return maMap.insert(value); }
};
class PageCacheManager::Deleter