mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
add constexpr noexcept (#5729)
This commit is contained in:
parent
8543555584
commit
2a9c30a616
1 changed files with 3 additions and 3 deletions
|
@ -166,17 +166,17 @@ struct peer_atom
|
|||
return (flags & ADDED_F_SEED_FLAG) != 0;
|
||||
}
|
||||
|
||||
[[nodiscard]] auto const& addr() const
|
||||
[[nodiscard]] constexpr auto const& addr() const noexcept
|
||||
{
|
||||
return socket_address.first;
|
||||
}
|
||||
|
||||
[[nodiscard]] auto& port()
|
||||
[[nodiscard]] constexpr auto& port() noexcept
|
||||
{
|
||||
return socket_address.second;
|
||||
}
|
||||
|
||||
[[nodiscard]] auto const& port() const
|
||||
[[nodiscard]] constexpr auto const& port() const noexcept
|
||||
{
|
||||
return socket_address.second;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue