mirror of
https://github.com/znc/znc.git
synced 2026-05-08 22:34:45 +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:
+2
-2
@@ -1018,7 +1018,7 @@ int MCString::WriteToDisk(const CString& sPath, mode_t iMode) {
|
||||
return MCS_EOPEN;
|
||||
}
|
||||
|
||||
for (MCString::iterator it = this->begin(); it != this->end(); it++) {
|
||||
for (MCString::iterator it = this->begin(); it != this->end(); ++it) {
|
||||
CString sKey = it->first;
|
||||
CString sValue = it->second;
|
||||
if (!WriteFilter(sKey, sValue)) {
|
||||
@@ -1070,7 +1070,7 @@ static const char hexdigits[] = "0123456789abcdef";
|
||||
|
||||
CString& MCString::Encode(CString& sValue) {
|
||||
CString sTmp;
|
||||
for (CString::iterator it = sValue.begin(); it != sValue.end(); it++) {
|
||||
for (CString::iterator it = sValue.begin(); it != sValue.end(); ++it) {
|
||||
if (isalnum(*it)) {
|
||||
sTmp += *it;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user