+ oops, corrected:)

This commit is contained in:
Artem Pavlenko 2011-09-01 19:21:03 +00:00
parent 9a9e5fb2e3
commit 2c5f723344

View file

@ -100,7 +100,7 @@ public:
mutex::scoped_lock lock(mutex_);
#endif
typename ContType::iterator itr=unusedPool_.begin();
for ( ;itr!=unusedPool_.end(); ++itr)
while ( itr!=unusedPool_.end())
{
#ifdef MAPNIK_DEBUG
std::clog<<"borrow "<<(*itr).get()<<"\n";
@ -116,7 +116,7 @@ public:
#ifdef MAPNIK_DEBUG
std::clog<<"bad connection (erase)" << (*itr).get()<<"\n";
#endif
unusedPool_.erase(itr);
itr=unusedPool_.erase(itr);
}
}
if (usedPool_.size() < maxSize_)