diff options
author | Max Kellermann <max@musicpd.org> | 2018-08-20 15:57:11 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-08-20 15:57:13 +0200 |
commit | 234a6193bb9f6ba2d0062606054a9d262eec26bb (patch) | |
tree | 1dbd54da2295f983fd6a5d7f3ed594340f1df2f6 /src/net/SocketAddress.hxx | |
parent | 2bf5f32224d95791239eee3e1a570c06a01041e8 (diff) |
net/SocketAddress: make GetAddress() constexpr
Diffstat (limited to 'src/net/SocketAddress.hxx')
-rw-r--r-- | src/net/SocketAddress.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/SocketAddress.hxx b/src/net/SocketAddress.hxx index ac934e431..6a75352ac 100644 --- a/src/net/SocketAddress.hxx +++ b/src/net/SocketAddress.hxx @@ -74,7 +74,7 @@ public: return address == nullptr; } - const struct sockaddr *GetAddress() const noexcept { + constexpr const struct sockaddr *GetAddress() const noexcept { return address; } |