From: Maxim Mamontov Date: Mon, 6 Dec 2010 14:29:09 +0000 (+0200) Subject: Исправлены опечатки и поправлена индентация X-Git-Tag: 2.407-rc3~345 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/418d6d7074ecf988a9a34c39f2085b3c18e96465?ds=sidebyside Исправлены опечатки и поправлена индентация --- diff --git a/projects/stargazer/user.cpp b/projects/stargazer/user.cpp index 2ac865bd..2db51411 100644 --- a/projects/stargazer/user.cpp +++ b/projects/stargazer/user.cpp @@ -856,11 +856,11 @@ IP_DIR_PAIR idp(ip, dir); map::iterator lb; lb = traffStat.lower_bound(idp); -if (lb == traffStat.end() || lb.first != idp) +if (lb == traffStat.end() || lb->first != idp) { traffStat.insert(lb, - pair(idp, - STAT_NODE(len, 0, cost))); + pair(idp, + STAT_NODE(len, 0, cost))); } else { @@ -946,11 +946,11 @@ IP_DIR_PAIR idp(ip, dir); map::iterator lb; lb = traffStat.lower_bound(idp); -if (lb == traffStat->end() || lb->first != idp) +if (lb == traffStat.end() || lb->first != idp) { - traffStat->insert(lb, - pair(idp, - STAT_NODE(0, len, cost))); + traffStat.insert(lb, + pair(idp, + STAT_NODE(0, len, cost))); } else {