summaryrefslogtreecommitdiff
path: root/include/o3tl/lru_map.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-23 09:46:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-23 11:08:24 +0200
commitb8f42b202f7afc882b77b66c4b24c086950f10fc (patch)
tree6fc64101315b8de5bb39ec838730c8b5b3765950 /include/o3tl/lru_map.hxx
parent66576edf4e7ed26f09788fac348ea6b556ae1c47 (diff)
loplugin:returnconstval in o3tl
Change-Id: Ib36382243552cd80dab431741f45dc767beccf59 Reviewed-on: https://gerrit.libreoffice.org/77993 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/o3tl/lru_map.hxx')
-rw-r--r--include/o3tl/lru_map.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/o3tl/lru_map.hxx b/include/o3tl/lru_map.hxx
index 54378a319ece..e822fde0294c 100644
--- a/include/o3tl/lru_map.hxx
+++ b/include/o3tl/lru_map.hxx
@@ -122,7 +122,7 @@ public:
}
}
- const list_const_iterator_t find(const Key& key)
+ list_const_iterator_t find(const Key& key)
{
const map_iterator_t i = mLruMap.find(key);
if (i == mLruMap.cend()) // can't find entry for the key
@@ -155,12 +155,12 @@ public:
}
}
- const list_const_iterator_t begin() const
+ list_const_iterator_t begin() const
{
return mLruList.cbegin();
}
- const list_const_iterator_t end() const
+ list_const_iterator_t end() const
{
return mLruList.cend();
}