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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
CVector<TData>& Get()
|
const CVector<TData>& Get()
|
||||||
{
|
{
|
||||||
iPutPos = 0;
|
iPutPos = 0;
|
||||||
return vecsMemory;
|
return vecsMemory;
|
||||||
|
|
|
@ -79,7 +79,7 @@ public:
|
||||||
|
|
||||||
void SetAddress ( const CHostAddress NAddr ) { InetAddr = NAddr; }
|
void SetAddress ( const CHostAddress NAddr ) { InetAddr = NAddr; }
|
||||||
bool GetAddress ( CHostAddress& RetAddr );
|
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 ResetInfo() { ChannelInfo = CChannelCoreInfo(); } // reset does not emit a message
|
||||||
void SetName ( const QString sNNa );
|
void SetName ( const QString sNNa );
|
||||||
|
|
|
@ -535,7 +535,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// compare operator
|
// compare operator
|
||||||
bool operator== ( const CHostAddress& CompAddr )
|
bool operator== ( const CHostAddress& CompAddr ) const
|
||||||
{
|
{
|
||||||
return ( ( CompAddr.InetAddr == InetAddr ) &&
|
return ( ( CompAddr.InetAddr == InetAddr ) &&
|
||||||
( CompAddr.iPort == iPort ) );
|
( CompAddr.iPort == iPort ) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue