Some more const_iterator instead of iterator

Thanks KiNgMaR again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1456 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-03-30 14:42:03 +00:00
parent 57341209cb
commit a6300e37fa
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -262,7 +262,7 @@ void CUser::UserConnected(CClient* pClient) {
if (GetIRCSock() != NULL) {
CString sUserMode("");
const set<unsigned char>& scUserModes = GetIRCSock()->GetUserModes();
for (set<unsigned char>::iterator it = scUserModes.begin();
for (set<unsigned char>::const_iterator it = scUserModes.begin();
it != scUserModes.end(); it++) {
sUserMode += *it;
}
@@ -482,7 +482,7 @@ bool CUser::IsHostAllowed(const CString& sHostMask) const {
return true;
}
for (set<CString>::iterator a = m_ssAllowedHosts.begin(); a != m_ssAllowedHosts.end(); a++) {
for (set<CString>::const_iterator a = m_ssAllowedHosts.begin(); a != m_ssAllowedHosts.end(); a++) {
if (sHostMask.WildCmp(*a)) {
return true;
}