diff --git a/qrtplib/rtpaddress.cpp b/qrtplib/rtpaddress.cpp index 28b5979f4..d32ca4a11 100644 --- a/qrtplib/rtpaddress.cpp +++ b/qrtplib/rtpaddress.cpp @@ -77,7 +77,7 @@ bool RTPAddress::IsFromSameHost(const RTPAddress *addr) const return addr->address == address; } -bool RTPAddress::operator==(const RTPAddress& otherAddress) +bool RTPAddress::operator==(const RTPAddress& otherAddress) const { return IsSameAddress(&otherAddress); } diff --git a/qrtplib/rtpaddress.h b/qrtplib/rtpaddress.h index 3d69f3941..aaee32cc0 100644 --- a/qrtplib/rtpaddress.h +++ b/qrtplib/rtpaddress.h @@ -94,7 +94,7 @@ public: bool IsFromSameHost(const RTPAddress *addr) const; /** Equality */ - bool operator==(const RTPAddress& otherAddress); + bool operator==(const RTPAddress& otherAddress) const; /** Get host address */ const QHostAddress& getAddress() const