X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhttp%2Fserver.cpp;fp=source%2Fhttp%2Fserver.cpp;h=c52bec4e7e89a2b3a703a657eecc88b102407788;hb=dd1884f1aaef4df246d78cabc9d937e5ebc3e511;hp=6055f008e4ff13328a6bf5409584a7e96f682458;hpb=62ea6954a91568c900ad8155999bea264dfa72f3;p=libs%2Fnet.git diff --git a/source/http/server.cpp b/source/http/server.cpp index 6055f00..c52bec4 100644 --- a/source/http/server.cpp +++ b/source/http/server.cpp @@ -95,7 +95,7 @@ void Server::close_connections(const Time::TimeDelta &timeout) while(!clients.empty() && poller.poll(timeout)) { for(const IO::Poller::PolledObject &p: poller.get_result()) - for(list::iterator j=clients.begin(); j!=clients.end(); ++j) + for(auto j=clients.begin(); j!=clients.end(); ++j) if(j->sock.get()==p.object) { poller.set_object(*j->sock, IO::P_NONE); @@ -117,7 +117,7 @@ void Server::data_available() void Server::client_data_available(Client &cl) { - for(list::iterator i=clients.begin(); i!=clients.end(); ++i) + for(auto i=clients.begin(); i!=clients.end(); ++i) if(i->stale && &*i!=&cl) { clients.erase(i);