include/o3tl/lru_map.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fc37d6c9588ff5cafca22c4a2f506474a69784e5
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Dec 21 14:32:34 2023 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Thu Dec 21 16:43:22 2023 +0100

    std::list::size() can still be implemented as std::distance()
    
    seen with Red Hat Developer Toolset 10
    
    https: 
//github.com/CollaboraOnline/online/issues/6893#issuecomment-1866342284
    Change-Id: I4a0e8ad028126dded678e971a6261d6725a6b06c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161105
    Reviewed-by: Michael Meeks <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/include/o3tl/lru_map.hxx b/include/o3tl/lru_map.hxx
index 859617e5d988..208070095f74 100644
--- a/include/o3tl/lru_map.hxx
+++ b/include/o3tl/lru_map.hxx
@@ -118,7 +118,7 @@ private:
         else
         {
             // This must leave at least one item (it's called from insert).
-            while (this->mCurrentSize > mMaxSize && mLruList.size() > 1)
+            while (this->mCurrentSize > mMaxSize && mLruMap.size() > 1)
                 removeOldestItem();
         }
     }
@@ -129,7 +129,7 @@ private:
         if constexpr (!std::is_void_v<ValueSize>)
         {
             // This must leave at least one item (it's called from insert).
-            while (this->mCurrentSize > mMaxSize && mLruList.size() > 1)
+            while (this->mCurrentSize > mMaxSize && mLruMap.size() > 1)
                 removeOldestItem();
         }
     }

Reply via email to