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:
psychon
2010-02-19 16:21:07 +00:00
parent e36d8ae576
commit 1d88f564dc
22 changed files with 69 additions and 71 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ public:
virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector<CChan*>& vChans) {
vector<CChan*>::const_iterator it;
CString sMsg = Nick.GetNickMask() + " quit with message: [" + sMessage + "]";
for (it = vChans.begin(); it != vChans.end(); it++) {
for (it = vChans.begin(); it != vChans.end(); ++it) {
AddBuffer(**it, sMsg);
}
}
@@ -54,7 +54,7 @@ public:
virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector<CChan*>& vChans) {
vector<CChan*>::const_iterator it;
CString sMsg = OldNick.GetNickMask() + " is now known as " + sNewNick;
for (it = vChans.begin(); it != vChans.end(); it++) {
for (it = vChans.begin(); it != vChans.end(); ++it) {
AddBuffer(**it, sMsg);
}
}