mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Fix all those warnings from -Wshadow
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@964 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -494,15 +494,18 @@ void CChan::IncPermCount(unsigned char uPerm) {
|
||||
}
|
||||
|
||||
bool CChan::RemNick(const CString& sNick) {
|
||||
map<CString,CNick*>::iterator it = m_msNicks.find(sNick);
|
||||
map<CString,CNick*>::iterator it;
|
||||
set<unsigned char>::iterator it2;
|
||||
|
||||
it = m_msNicks.find(sNick);
|
||||
if (it == m_msNicks.end()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const set<unsigned char>& suPerms = it->second->GetChanPerms();
|
||||
|
||||
for (set<unsigned char>::iterator it = suPerms.begin(); it != suPerms.end(); it++) {
|
||||
DecPermCount(*it);
|
||||
for (it2 = suPerms.begin(); it2 != suPerms.end(); it2++) {
|
||||
DecPermCount(*it2);
|
||||
}
|
||||
|
||||
delete it->second;
|
||||
|
||||
Reference in New Issue
Block a user