Commit 4036b0cd authored by Rom Walton's avatar Rom Walton
Browse files

Merge pull request #1404 from serval2412/master

cppcheck: Fix reports "Prefer prefix ++/-- operators for non-primitiv…
parents 5a799d29 78e0a8a2
...@@ -310,7 +310,7 @@ void procinfo_show(PROC_MAP& pm) { ...@@ -310,7 +310,7 @@ void procinfo_show(PROC_MAP& pm) {
PROCINFO pi; PROCINFO pi;
pi.clear(); pi.clear();
PROC_MAP::iterator i; PROC_MAP::iterator i;
for (i=pm.begin(); i!=pm.end(); i++) { for (i=pm.begin(); i!=pm.end(); ++i) {
PROCINFO& p = i->second; PROCINFO& p = i->second;
msg_printf(NULL, MSG_INFO, "%d %s: boinc? %d low_pri %d (u%f k%f)", msg_printf(NULL, MSG_INFO, "%d %s: boinc? %d low_pri %d (u%f k%f)",
......
...@@ -690,7 +690,7 @@ void print_old_results(MIOFILE& mf) { ...@@ -690,7 +690,7 @@ void print_old_results(MIOFILE& mf) {
ores.completed_time, ores.completed_time,
ores.create_time ores.create_time
); );
i++; ++i;
} }
mf.printf("</old_results>\n"); mf.printf("</old_results>\n");
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment