made QZeroConfService compareable

This commit is contained in:
Matthias Kollmann
2017-10-16 17:06:05 +02:00
parent 96bf0884bd
commit 3ec3630048
2 changed files with 6 additions and 0 deletions

View File

@@ -139,4 +139,9 @@ bool QZeroConfService::isValid() const
return (!data->name.isEmpty()) && (data->port > 0);
}
bool QZeroConfService::operator==(const QZeroConfService &rhs) const
{
return this->name() == rhs.name() && this->ip() == rhs.ip() && this->ipv6() == rhs.ipv6();
}