summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-21 20:21:41 +0200
committerMax Kellermann <max@musicpd.org>2018-08-21 20:21:41 +0200
commitdda5516eec410b9ab23090c9d733e85283f6f2d3 (patch)
tree8d4138f4a61f8bf47c43f2ea4efefbd7937e4162 /src/net
parentadc5c5db8849807b7742fc01e69d224062f8323b (diff)
net/IPv6Address: pass reference to Cast()
Diffstat (limited to 'src/net')
-rw-r--r--src/net/IPv6Address.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/IPv6Address.hxx b/src/net/IPv6Address.hxx
index 2b5cfdccf..d8b9f7478 100644
--- a/src/net/IPv6Address.hxx
+++ b/src/net/IPv6Address.hxx
@@ -124,7 +124,7 @@ public:
* Return a downcasted reference to the address. This call is
* only legal after verifying SocketAddress::GetFamily().
*/
- static constexpr const IPv6Address &Cast(const SocketAddress src) noexcept {
+ static constexpr const IPv6Address &Cast(const SocketAddress &src) noexcept {
/* this reinterpret_cast works because this class is
just a wrapper for struct sockaddr_in6 */
return *(const IPv6Address *)(const void *)src.GetAddress();