Socket::operator=: Return non-const reference

Found by cppcheck.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2013-02-18 02:07:45 -05:00
committed by Keith Winstein
parent d0eeabb51e
commit 866e1399d5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 );
+1 -1
View File
@@ -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;