mirror of
https://github.com/znc/znc.git
synced 2026-08-11 19:32:46 +02:00
Add some 'const' attributes to various functions
No real changes in here, only way more constness... git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1129 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -486,8 +486,8 @@ bool CChan::AddNick(const CString& sNick) {
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned int CChan::GetPermCount(unsigned char uPerm) {
|
||||
map<unsigned char, unsigned int>::iterator it = m_muuPermCount.find(uPerm);
|
||||
unsigned int CChan::GetPermCount(unsigned char uPerm) const {
|
||||
map<unsigned char, unsigned int>::const_iterator it = m_muuPermCount.find(uPerm);
|
||||
return (it == m_muuPermCount.end()) ? 0 : it->second;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user