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:
psychon
2008-02-19 20:25:21 +00:00
parent 0dfaa1d706
commit 8f22dcc60d
9 changed files with 61 additions and 57 deletions
+9 -9
View File
@@ -419,10 +419,10 @@ public:
Table.SetCell("Description", "Show which users can not part this channel");
unsigned int uTableIdx = 0;
CString sLine;
CString sTmp;
while (Table.GetLine(uTableIdx++, sLine)) {
PutModule(sLine);
while (Table.GetLine(uTableIdx++, sTmp)) {
PutModule(sTmp);
}
} else if (sCommand.CaseCmp("LIST") == 0) {
if (!m_ssChannels.size()) {
@@ -443,10 +443,10 @@ public:
}
unsigned int uTableIdx = 0;
CString sLine;
CString sTmp;
while (Table.GetLine(uTableIdx++, sLine)) {
PutModule(sLine);
while (Table.GetLine(uTableIdx++, sTmp)) {
PutModule(sTmp);
}
} else if (sCommand.CaseCmp("ADDFIXCHAN") == 0) {
if(!m_pUser->IsAdmin()) {
@@ -577,10 +577,10 @@ public:
void SendNickList(CUser* pUser, const set<CString>& ssNicks, const CString& sChan) {
CString sNickList;
for (set<CString>::iterator it = ssNicks.begin(); it != ssNicks.end(); it++) {
CUser* pUser = CZNC::Get().FindUser(*it);
CUser* pChanUser = CZNC::Get().FindUser(*it);
if (pUser && pUser->IsUserAttached()) {
sNickList += (pUser->IsAdmin()) ? "@" : "+";
if (pChanUser && pChanUser->IsUserAttached()) {
sNickList += (pChanUser->IsAdmin()) ? "@" : "+";
}
sNickList += "?" + (*it) + " ";