const correctness

This commit is contained in:
Volker Fischer 2014-01-06 16:06:04 +00:00
parent f016e9e022
commit efdd10fc13
3 changed files with 3 additions and 3 deletions

View File

@ -469,7 +469,7 @@ public:
return false; return false;
} }
CVector<TData>& Get() const CVector<TData>& Get()
{ {
iPutPos = 0; iPutPos = 0;
return vecsMemory; return vecsMemory;

View File

@ -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 );

View File

@ -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 ) );