Fix some gcc 4.3 warnings

These are mostly string casts, handling function's return value and some
weird warning about missing spaces on empty while loops.

These were reported by and fixed with Marcus Rueckert <darix@opensu.se>.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@904 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-12-20 18:31:48 +00:00
parent db9694836e
commit b490b12058
5 changed files with 35 additions and 19 deletions
+6 -3
View File
@@ -319,7 +319,8 @@ private:
}
list<CWatchEntry>::iterator it = m_lsWatchers.begin();
for (unsigned int a = 0; a < uIdx; a++, it++);
for (unsigned int a = 0; a < uIdx; a++)
it++;
(*it).SetDisabled(bDisabled);
PutModule("Id " + CString(uIdx +1) + ((bDisabled) ? " Disabled" : " Enabled"));
@@ -396,7 +397,8 @@ private:
}
list<CWatchEntry>::iterator it = m_lsWatchers.begin();
for (unsigned int a = 0; a < uIdx; a++, it++);
for (unsigned int a = 0; a < uIdx; a++)
it++;
(*it).SetSources(sSources);
PutModule("Sources set for Id " + CString(uIdx +1) + ".");
@@ -410,7 +412,8 @@ private:
}
list<CWatchEntry>::iterator it = m_lsWatchers.begin();
for (unsigned int a = 0; a < uIdx; a++, it++);
for (unsigned int a = 0; a < uIdx; a++)
it++;
m_lsWatchers.erase(it);
PutModule("Id " + CString(uIdx +1) + " Removed.");