net/AllocatedSocketAddress: pass SocketAddress by value to operator!=

This commit is contained in:
Max Kellermann 2017-09-13 17:51:51 +02:00
parent a6e62479be
commit 8a81b986c0

View File

@ -89,7 +89,7 @@ public:
return (SocketAddress)*this == other;
}
bool operator!=(SocketAddress &other) const noexcept {
bool operator!=(SocketAddress other) const noexcept {
return !(*this == other);
}