mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-21 02:00:33 +01:00
clang/gcc fixes
This commit is contained in:
parent
df46368413
commit
2c445f3fb1
@ -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();
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user