mirror of
https://github.com/znc/znc.git
synced 2026-05-06 13:32:36 +02:00
Fix a bunch of style suggestions from cppcheck[1]
Thanks to DarthGandalf for this patch. You must be bored. :P [1] cppcheck.sf.net git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1776 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -30,7 +30,7 @@ public:
|
||||
|
||||
// Load our saved settings, ignore errors
|
||||
MCString::iterator it;
|
||||
for (it = BeginNV(); it != EndNV(); it++) {
|
||||
for (it = BeginNV(); it != EndNV(); ++it) {
|
||||
Add(it->first);
|
||||
}
|
||||
|
||||
@@ -125,12 +125,12 @@ public:
|
||||
if (sInput.Left(1) == "!") {
|
||||
CString sChan = sInput.substr(1);
|
||||
for (it = m_vsNegChans.begin(); it != m_vsNegChans.end();
|
||||
it++) {
|
||||
++it) {
|
||||
if (*it == sChan)
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
for (it = m_vsChans.begin(); it != m_vsChans.end(); it++) {
|
||||
for (it = m_vsChans.begin(); it != m_vsChans.end(); ++it) {
|
||||
if (*it == sInput)
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user