Fix cppcheck complaint

This commit is contained in:
Tony Levi 2016-06-28 14:59:20 +09:30
parent d57c12d3c3
commit ab4b92074c

View File

@ -499,11 +499,12 @@ bool StatCache::TruncateCache(void)
if(entry){ if(entry){
delete entry; delete entry;
} }
stat_cache.erase(iter); stat_cache.erase(iter++);
} }else{
++iter; ++iter;
} }
} }
}
// 2) check stat cache count // 2) check stat cache count
if(stat_cache.size() < CacheSize){ if(stat_cache.size() < CacheSize){