From 796956970e26e5ea1730d9f070014f592ab9c082 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Aug 2017 12:25:33 +0200 Subject: [PATCH] net/StaticSocketAddress: pass SocketAddress by value to operator!= --- src/net/StaticSocketAddress.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index 72287a8d1..2305379aa 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -120,7 +120,7 @@ public: return (SocketAddress)*this == other; } - bool operator!=(SocketAddress &other) const noexcept { + bool operator!=(SocketAddress other) const noexcept { return !(*this == other); } };