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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user