mirror of
https://github.com/znc/znc.git
synced 2026-05-02 11:32:29 +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:
@@ -744,7 +744,7 @@ bool CModules::UnloadModule(const CString& sModule, CString& sRetMsg) {
|
||||
}
|
||||
|
||||
if (pModule->IsFake()) {
|
||||
for (iterator it = begin(); it != end(); it++) {
|
||||
for (iterator it = begin(); it != end(); ++it) {
|
||||
if (*it == pModule) {
|
||||
erase(it);
|
||||
sRetMsg = "Fake module [" + sMod + "] unloaded";
|
||||
@@ -765,7 +765,7 @@ bool CModules::UnloadModule(const CString& sModule, CString& sRetMsg) {
|
||||
if (Unload) {
|
||||
Unload(pModule);
|
||||
|
||||
for (iterator it = begin(); it != end(); it++) {
|
||||
for (iterator it = begin(); it != end(); ++it) {
|
||||
if (*it == pModule) {
|
||||
erase(it);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user