summaryrefslogtreecommitdiff
path: root/include/o3tl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2018-04-11 15:53:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-11 19:01:21 +0200
commit8094fa17207729c119f7a1fa399286919dd1a8a3 (patch)
tree4e01317403d628dd50043917c98d3acd6650409c /include/o3tl
parent9c0684c9efca25ab9a39002b34328fafc30cc8bd (diff)
improve commit 95eb921ec06ee7
"tdf#108608 more Draw text editing responsiveness fixes" lru_map is fine on Windows, was a bug in the new clear method I added. Change-Id: I27565675dfe0f57e2ba3c3e0c50297770761dc6a Reviewed-on: https://gerrit.libreoffice.org/52728 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/lru_map.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/o3tl/lru_map.hxx b/include/o3tl/lru_map.hxx
index 4eb05bd97a43..f2369e45030a 100644
--- a/include/o3tl/lru_map.hxx
+++ b/include/o3tl/lru_map.hxx
@@ -125,7 +125,7 @@ public:
const list_const_iterator_t end() const
{
- return mLruList.end();
+ return mLruList.cend();
}
size_t size() const
@@ -135,6 +135,7 @@ public:
void clear()
{
+ mLruMap.clear();
mLruList.clear();
}
};