Fixed: Compilation under GCC 4.8.4

--HG--
branch : develop
This commit is contained in:
kervala 2017-06-23 16:58:51 +02:00
parent de8a6ba1b5
commit 1aa708c4de

View file

@ -165,9 +165,16 @@ namespace NLGUI
// if we over object limit, then start removing expired objects // if we over object limit, then start removing expired objects
// this does not guarantee that max limit is reached // this does not guarantee that max limit is reached
for (THttpCacheMap::iterator it = _List.begin(); it != _List.end();) { for (THttpCacheMap::iterator it = _List.begin(); it != _List.end();)
if (it->second.Expires <= currentTime) { {
if (it->second.Expires <= currentTime)
{
#ifdef NL_ISO_CPP0X_AVAILABLE
it = _List.erase(it); it = _List.erase(it);
#else
THttpCacheMap::iterator itToErase = it++;
_List.erase(itToErase);
#endif
--mustDrop; --mustDrop;
if (mustDrop == 0) if (mustDrop == 0)