From 2c445f3fb12a89994d93f2782ab9ee5ae9e099db Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Tue, 1 May 2018 13:51:29 -0500 Subject: [PATCH] clang/gcc fixes --- Net/include/Poco/Net/ParallelSocketAcceptor.h | 4 ++-- Net/src/PollSet.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Net/include/Poco/Net/ParallelSocketAcceptor.h b/Net/include/Poco/Net/ParallelSocketAcceptor.h index 4f55cd818..7b9a3dabd 100644 --- a/Net/include/Poco/Net/ParallelSocketAcceptor.h +++ b/Net/include/Poco/Net/ParallelSocketAcceptor.h @@ -185,8 +185,8 @@ protected: /// Returns reactor where this socket is already registered /// for polling, if found; otherwise returns null pointer. { - ReactorVec::iterator it = _reactors.begin(); - ReactorVec::iterator end = _reactors.end(); + typename ReactorVec::iterator it = _reactors.begin(); + typename ReactorVec::iterator end = _reactors.end(); for (; it != end; ++it) { if ((*it)->has(socket)) return it->get(); diff --git a/Net/src/PollSet.cpp b/Net/src/PollSet.cpp index 4e57ec834..dbc613778 100644 --- a/Net/src/PollSet.cpp +++ b/Net/src/PollSet.cpp @@ -114,7 +114,7 @@ public: Poco::FastMutex::ScopedLock lock(_mutex); SocketImpl* sockImpl = socket.impl(); return sockImpl && - (_socketMap.find(sockImpl->sockfd()) != _socketMap.end()); + (_socketMap.find(sockImpl) != _socketMap.end()); } bool empty() const