From: Maxim Mamontov Date: Mon, 21 Mar 2011 14:21:21 +0000 (+0200) Subject: Fix prefix increment operator to postfix X-Git-Tag: 2.407-rc3~131 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/5fac70d2a11be1f48ba3f2005a8df18b4db6b620 Fix prefix increment operator to postfix --- diff --git a/projects/stargazer/users_impl.cpp b/projects/stargazer/users_impl.cpp index 3384c660..d2c9d7cc 100644 --- a/projects/stargazer/users_impl.cpp +++ b/projects/stargazer/users_impl.cpp @@ -336,7 +336,7 @@ while (ui != us->users.end()) { us->UnSetUserNotifiers(ui); us->DelUserFromIndexes(ui); - ui++; + ++ui; } list::iterator iter; @@ -373,7 +373,7 @@ if (TimeToWriteDetailStat(t)) { usersCnt++; usr->WriteDetailStat(); - usr++; + ++usr; if (usersCnt % 10 == 0) for_each(users.begin(), users.end(), mem_fun_ref(&USER_IMPL::Run)); } @@ -710,7 +710,7 @@ while (bi != userIPNotifiersBefore.end()) //printfd(__FILE__, "Notifier Before removed. User %s\n", bi->GetUser()->GetLogin().c_str()); break; } - bi++; + ++bi; } ai = userIPNotifiersAfter.begin(); @@ -723,7 +723,7 @@ while (ai != userIPNotifiersAfter.end()) //printfd(__FILE__, "Notifier After removed. User %s\n", ai->GetUser()->GetLogin().c_str()); break; } - ai++; + ++ai; } } //-----------------------------------------------------------------------------