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

This commit is contained in:
Max Kellermann 2017-08-10 12:25:33 +02:00
parent c0020142da
commit 796956970e

View File

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