mirror of
https://github.com/znc/znc.git
synced 2026-08-05 08:23:12 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user