diff --git a/Net/src/IPAddress.cpp b/Net/src/IPAddress.cpp index 783d90a81..90a1ae5a3 100644 --- a/Net/src/IPAddress.cpp +++ b/Net/src/IPAddress.cpp @@ -407,8 +407,8 @@ IPAddress IPAddress::operator & (const IPAddress& other) const { const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope()); const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope()); - const IPv6AddressImpl r = t & o; - return IPAddress(r.addr(), r.scope(), sizeof(struct in6_addr)); + const IPv6AddressImpl r = t & o; + return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope()); } #endif else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()"); @@ -432,8 +432,8 @@ IPAddress IPAddress::operator | (const IPAddress& other) const { const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope()); const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope()); - const IPv6AddressImpl r = t | o; - return IPAddress(r.addr(), r.scope(), sizeof(struct in6_addr)); + const IPv6AddressImpl r = t | o; + return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope()); } #endif else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()"); @@ -457,8 +457,8 @@ IPAddress IPAddress::operator ^ (const IPAddress& other) const { const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope()); const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope()); - const IPv6AddressImpl r = t ^ o; - return IPAddress(r.addr(), r.scope(), sizeof(struct in6_addr)); + const IPv6AddressImpl r = t ^ o; + return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope()); } #endif else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()"); @@ -478,7 +478,7 @@ IPAddress IPAddress::operator ~ () const else if (family() == IPv6) { const IPv6AddressImpl self(pImpl()->addr(), pImpl()->scope()); - const IPv6AddressImpl r = ~self; + const IPv6AddressImpl r = ~self; return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope()); } #endif