Browse Source

Fixed some constness in qrtplib

chirpmodem-v8.0.0
f4exb 8 years ago
parent
commit
6c1f8e2bfc
  1. 2
      qrtplib/rtpaddress.cpp
  2. 2
      qrtplib/rtpaddress.h

2
qrtplib/rtpaddress.cpp

@ -77,7 +77,7 @@ bool RTPAddress::IsFromSameHost(const RTPAddress *addr) const @@ -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);
}

2
qrtplib/rtpaddress.h

@ -94,7 +94,7 @@ public: @@ -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

Loading…
Cancel
Save