diff --git a/src/buffer.h b/src/buffer.h index 903604f7..06f2cf35 100755 --- a/src/buffer.h +++ b/src/buffer.h @@ -469,7 +469,7 @@ public: return false; } - CVector& Get() + const CVector& Get() { iPutPos = 0; return vecsMemory; diff --git a/src/channel.h b/src/channel.h index 2a88f7b2..f68870d0 100755 --- a/src/channel.h +++ b/src/channel.h @@ -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 ); diff --git a/src/util.h b/src/util.h index 5878e263..b5c1fce5 100755 --- a/src/util.h +++ b/src/util.h @@ -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 ) );