From 8a81b986c0e7768f68b60e89713e7ee423473d51 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Sep 2017 17:51:51 +0200 Subject: [PATCH] net/AllocatedSocketAddress: pass SocketAddress by value to operator!= --- src/net/AllocatedSocketAddress.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/AllocatedSocketAddress.hxx b/src/net/AllocatedSocketAddress.hxx index def181a8c..30ed8d819 100644 --- a/src/net/AllocatedSocketAddress.hxx +++ b/src/net/AllocatedSocketAddress.hxx @@ -89,7 +89,7 @@ public: return (SocketAddress)*this == other; } - bool operator!=(SocketAddress &other) const noexcept { + bool operator!=(SocketAddress other) const noexcept { return !(*this == other); }