clang/gcc fixes

This commit is contained in:
Alex Fabijanic 2018-05-01 13:51:29 -05:00
parent df46368413
commit 2c445f3fb1
2 changed files with 3 additions and 3 deletions

View File

@ -185,8 +185,8 @@ protected:
/// Returns reactor where this socket is already registered /// Returns reactor where this socket is already registered
/// for polling, if found; otherwise returns null pointer. /// for polling, if found; otherwise returns null pointer.
{ {
ReactorVec::iterator it = _reactors.begin(); typename ReactorVec::iterator it = _reactors.begin();
ReactorVec::iterator end = _reactors.end(); typename ReactorVec::iterator end = _reactors.end();
for (; it != end; ++it) for (; it != end; ++it)
{ {
if ((*it)->has(socket)) return it->get(); if ((*it)->has(socket)) return it->get();

View File

@ -114,7 +114,7 @@ public:
Poco::FastMutex::ScopedLock lock(_mutex); Poco::FastMutex::ScopedLock lock(_mutex);
SocketImpl* sockImpl = socket.impl(); SocketImpl* sockImpl = socket.impl();
return sockImpl && return sockImpl &&
(_socketMap.find(sockImpl->sockfd()) != _socketMap.end()); (_socketMap.find(sockImpl) != _socketMap.end());
} }
bool empty() const bool empty() const