summaryrefslogtreecommitdiff
path: root/include/o3tl/lru_map.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/o3tl/lru_map.hxx')
-rw-r--r--include/o3tl/lru_map.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/o3tl/lru_map.hxx b/include/o3tl/lru_map.hxx
index ce5a078bc352..dc8a102977dd 100644
--- a/include/o3tl/lru_map.hxx
+++ b/include/o3tl/lru_map.hxx
@@ -77,8 +77,7 @@ public:
// Some code .e.g. SalBitmap likes to remove itself from a cache during it's destructor, which means we
// get calls into lru_map while we are in destruction, so use the swap-and-clear idiom to avoid those problems.
mLruMap.clear();
- list_t aLruListTemp;
- aLruListTemp.swap(mLruList);
+ list_t().swap(mLruList);
}
void insert(key_value_pair_t& rPair)