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:
psychon
2008-07-14 08:13:06 +00:00
parent 4a62fca388
commit 86924339a3
8 changed files with 27 additions and 27 deletions
+3 -3
View File
@@ -94,7 +94,7 @@ CString CZNC::GetTag(bool bIncludeVersion) {
return szBuf;
}
CString CZNC::GetUptime() {
CString CZNC::GetUptime() const {
time_t now = time(NULL);
return CString::ToTimeStr(now - TimeStarted());
}
@@ -390,8 +390,8 @@ Csock* CZNC::FindSockByName(const CString& sSockName) {
return m_Manager.FindSockByName(sSockName);
}
bool CZNC::IsHostAllowed(const CString& sHostMask) {
for (map<CString,CUser*>::iterator a = m_msUsers.begin(); a != m_msUsers.end(); a++) {
bool CZNC::IsHostAllowed(const CString& sHostMask) const {
for (map<CString,CUser*>::const_iterator a = m_msUsers.begin(); a != m_msUsers.end(); a++) {
if (a->second->IsHostAllowed(sHostMask)) {
return true;
}