cppcheck: Fix reports "Prefer prefix ++/-- operators for non-primitive types"

[client/app.cpp:313]: (performance) Prefer prefix ++/-- operators for non-primitive types.
[client/result.cpp:693]: (performance) Prefer prefix ++/-- operators for non-primitive types.
This commit is contained in:
Julien Nabet 2015-10-10 21:22:18 +02:00
parent 5a799d297e
commit 78e0a8a2b7
2 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ void procinfo_show(PROC_MAP& pm) {
PROCINFO pi;
pi.clear();
PROC_MAP::iterator i;
for (i=pm.begin(); i!=pm.end(); i++) {
for (i=pm.begin(); i!=pm.end(); ++i) {
PROCINFO& p = i->second;
msg_printf(NULL, MSG_INFO, "%d %s: boinc? %d low_pri %d (u%f k%f)",

View File

@ -690,7 +690,7 @@ void print_old_results(MIOFILE& mf) {
ores.completed_time,
ores.create_time
);
i++;
++i;
}
mf.printf("</old_results>\n");
}