|
|
@ -366,12 +366,15 @@ Net::ServiceID Net::ServiceID::fromURL(const QUrl &url) |
|
|
|
|
|
|
|
|
|
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
|
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
|
|
|
std::size_t Net::qHash(const ServiceID &serviceID, const std::size_t seed) |
|
|
|
std::size_t Net::qHash(const ServiceID &serviceID, const std::size_t seed) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return qHashMulti(seed, serviceID.hostName, serviceID.port); |
|
|
|
|
|
|
|
} |
|
|
|
#else |
|
|
|
#else |
|
|
|
uint Net::qHash(const ServiceID &serviceID, const uint seed) |
|
|
|
uint Net::qHash(const ServiceID &serviceID, const uint seed) |
|
|
|
#endif |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
return ::qHash(serviceID.hostName, seed) ^ ::qHash(serviceID.port); |
|
|
|
return ::qHash(serviceID.hostName, seed) ^ ::qHash(serviceID.port); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
bool Net::operator==(const ServiceID &lhs, const ServiceID &rhs) |
|
|
|
bool Net::operator==(const ServiceID &lhs, const ServiceID &rhs) |
|
|
|
{ |
|
|
|
{ |
|
|
|