const correctness
This commit is contained in:
parent
f016e9e022
commit
efdd10fc13
3 changed files with 3 additions and 3 deletions
|
@ -469,7 +469,7 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
CVector<TData>& Get()
|
||||
const CVector<TData>& Get()
|
||||
{
|
||||
iPutPos = 0;
|
||||
return vecsMemory;
|
||||
|
|
|
@ -79,7 +79,7 @@ public:
|
|||
|
||||
void SetAddress ( const CHostAddress NAddr ) { InetAddr = NAddr; }
|
||||
bool GetAddress ( CHostAddress& RetAddr );
|
||||
CHostAddress& GetAddress() { return InetAddr; }
|
||||
const CHostAddress& GetAddress() const { return InetAddr; }
|
||||
|
||||
void ResetInfo() { ChannelInfo = CChannelCoreInfo(); } // reset does not emit a message
|
||||
void SetName ( const QString sNNa );
|
||||
|
|
|
@ -535,7 +535,7 @@ public:
|
|||
}
|
||||
|
||||
// compare operator
|
||||
bool operator== ( const CHostAddress& CompAddr )
|
||||
bool operator== ( const CHostAddress& CompAddr ) const
|
||||
{
|
||||
return ( ( CompAddr.InetAddr == InetAddr ) &&
|
||||
( CompAddr.iPort == iPort ) );
|
||||
|
|
Loading…
Reference in a new issue