Fix variable shadowing.

This commit is contained in:
Alex Shvartzkop 2023-10-24 04:25:31 +03:00
parent 977912dcd5
commit 0e4553b1fa
1 changed files with 2 additions and 2 deletions

View File

@ -258,11 +258,11 @@ GLuint GL_BITMAP_CACHE::cacheBitmap( const BITMAP_BASE* aBitmap )
auto toRemoveLru = m_cacheLru.end(); auto toRemoveLru = m_cacheLru.end();
// Remove entries accessed > 1s ago first // Remove entries accessed > 1s ago first
for( const auto& [kiid, bmp] : m_bitmaps ) for( const auto& [kiid, cachedBmp] : m_bitmaps )
{ {
const int cacheTimeoutMillis = 1000L; const int cacheTimeoutMillis = 1000L;
if( currentTime - bmp.accessTime > cacheTimeoutMillis ) if( currentTime - cachedBmp.accessTime > cacheTimeoutMillis )
{ {
toRemove = kiid; toRemove = kiid;
toRemoveLru = std::find( m_cacheLru.begin(), m_cacheLru.end(), toRemove ); toRemoveLru = std::find( m_cacheLru.begin(), m_cacheLru.end(), toRemove );