Socket::operator=: Return non-const reference
Found by cppcheck. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Keith Winstein
parent
d0eeabb51e
commit
866e1399d5
@@ -586,7 +586,7 @@ Connection::Socket::Socket( const Socket & other )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const Connection::Socket & Connection::Socket::operator=( const Socket & other )
|
Connection::Socket & Connection::Socket::operator=( const Socket & other )
|
||||||
{
|
{
|
||||||
_fd = dup( other._fd );
|
_fd = dup( other._fd );
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ namespace Network {
|
|||||||
~Socket();
|
~Socket();
|
||||||
|
|
||||||
Socket( const Socket & other );
|
Socket( const Socket & other );
|
||||||
const Socket & operator=( const Socket & other );
|
Socket & operator=( const Socket & other );
|
||||||
};
|
};
|
||||||
|
|
||||||
std::deque< Socket > socks;
|
std::deque< Socket > socks;
|
||||||
|
|||||||
Reference in New Issue
Block a user