mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
Fixed position of scope parameter. Fixes #1552
This commit is contained in:

committed by
Guenter Obiltschnig

parent
9efedaafe3
commit
e85aa902f9
@@ -408,7 +408,7 @@ IPAddress IPAddress::operator & (const IPAddress& other) const
|
|||||||
const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope());
|
const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope());
|
||||||
const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope());
|
const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope());
|
||||||
const IPv6AddressImpl r = t & o;
|
const IPv6AddressImpl r = t & o;
|
||||||
return IPAddress(r.addr(), r.scope(), sizeof(struct in6_addr));
|
return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
||||||
@@ -433,7 +433,7 @@ IPAddress IPAddress::operator | (const IPAddress& other) const
|
|||||||
const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope());
|
const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope());
|
||||||
const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope());
|
const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope());
|
||||||
const IPv6AddressImpl r = t | o;
|
const IPv6AddressImpl r = t | o;
|
||||||
return IPAddress(r.addr(), r.scope(), sizeof(struct in6_addr));
|
return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
||||||
@@ -458,7 +458,7 @@ IPAddress IPAddress::operator ^ (const IPAddress& other) const
|
|||||||
const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope());
|
const IPv6AddressImpl t(pImpl()->addr(), pImpl()->scope());
|
||||||
const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope());
|
const IPv6AddressImpl o(other.pImpl()->addr(), other.pImpl()->scope());
|
||||||
const IPv6AddressImpl r = t ^ o;
|
const IPv6AddressImpl r = t ^ o;
|
||||||
return IPAddress(r.addr(), r.scope(), sizeof(struct in6_addr));
|
return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
||||||
|
Reference in New Issue
Block a user