*: add lots of "noexcept" specifications
This commit is contained in:
@@ -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:
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user