diff --git a/Chan.h b/Chan.h index 841e22ee..ec0349b9 100644 --- a/Chan.h +++ b/Chan.h @@ -128,7 +128,7 @@ public: CString GetOptions() const; CString GetModeArg(unsigned char uMode) const; unsigned int GetPermCount(unsigned char uPerm); - const bool IsOn() const { return m_bIsOn; } + bool IsOn() const { return m_bIsOn; } const CString& GetName() const { return m_sName; } const map& GetModes() const { return m_musModes; } const CString& GetKey() const { return (!m_sCurKey.empty()) ? m_sCurKey : m_sKey; } diff --git a/Nick.cpp b/Nick.cpp index 1882f175..6d1e5778 100644 --- a/Nick.cpp +++ b/Nick.cpp @@ -122,7 +122,7 @@ void CNick::UpdatePermChar() { } const set& CNick::GetChanPerms() const { return m_suChanPerms; } -const unsigned char CNick::GetPermChar() const { return m_cPerm; } +unsigned char CNick::GetPermChar() const { return m_cPerm; } CString CNick::GetPermStr() const { CIRCSock* pIRCSock = (!m_pUser) ? NULL : m_pUser->GetIRCSock(); const CString& sChanPerms = (!pIRCSock) ? "@+" : pIRCSock->GetPerms(); diff --git a/Nick.h b/Nick.h index bc1206f6..6b4379e3 100644 --- a/Nick.h +++ b/Nick.h @@ -47,7 +47,7 @@ public: // Getters const set& GetChanPerms() const; CString GetPermStr() const; - const unsigned char GetPermChar() const; + unsigned char GetPermChar() const; bool HasPerm(unsigned char uPerm) const; const CString& GetNick() const; const CString& GetIdent() const; diff --git a/Template.h b/Template.h index 848c0673..a965f6b5 100644 --- a/Template.h +++ b/Template.h @@ -63,7 +63,7 @@ public: const CString& GetName() const { return m_sName; } unsigned long GetFilePosition() const { return m_uFilePosition; } unsigned int GetRowIndex() const { return m_uRowIndex; } - const unsigned int GetRowCount() { return m_pvRows->size(); } + unsigned int GetRowCount() { return m_pvRows->size(); } vector* GetRows() { return m_pvRows; } CTemplate* GetNextRow() { return GetRow(IncRowIndex()); } CTemplate* GetCurRow() { return GetRow(m_uRowIndex); }