mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02:00
Fixed position of scope parameter. Fixes #1552
This commit is contained in:
parent
356add42b4
commit
2267feb475
@ -425,7 +425,7 @@ 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));
|
||||
return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope());
|
||||
}
|
||||
#endif
|
||||
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
||||
@ -450,7 +450,7 @@ 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));
|
||||
return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope());
|
||||
}
|
||||
#endif
|
||||
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
||||
@ -475,7 +475,7 @@ 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));
|
||||
return IPAddress(r.addr(), sizeof(struct in6_addr), r.scope());
|
||||
}
|
||||
#endif
|
||||
else throw Poco::InvalidArgumentException("Invalid or unsupported address family passed to IPAddress()");
|
||||
|
Loading…
x
Reference in New Issue
Block a user