*: add lots of "noexcept" specifications

This commit is contained in:
Max Kellermann
2017-06-04 13:09:11 +02:00
parent 979f1b6c39
commit ae713cb099
9 changed files with 20 additions and 20 deletions

View File

@@ -53,7 +53,7 @@ StaticSocketAddress::operator=(SocketAddress other) noexcept
#ifdef HAVE_TCP
bool
StaticSocketAddress::SetPort(unsigned port)
StaticSocketAddress::SetPort(unsigned port) noexcept
{
switch (GetFamily()) {
case AF_INET:

View File

@@ -96,7 +96,7 @@ public:
* Extract the port number. Returns 0 if not applicable.
*/
gcc_pure
unsigned GetPort() const {
unsigned GetPort() const noexcept {
return ((SocketAddress)*this).GetPort();
}
@@ -104,7 +104,7 @@ public:
* @return true on success, false if this address cannot have
* a port number
*/
bool SetPort(unsigned port);
bool SetPort(unsigned port) noexcept;
#endif
gcc_pure