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