From 4d6ca28e5362f999eec8bfe885a339c186ed2504 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 1 Mar 2013 19:03:55 +0000 Subject: [PATCH] fixed bug (Plz drbob & chris, check this one) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6173 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3posted.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/services/p3posted.cc b/libretroshare/src/services/p3posted.cc index 75ab231f8..40cf5a0fb 100644 --- a/libretroshare/src/services/p3posted.cc +++ b/libretroshare/src/services/p3posted.cc @@ -578,8 +578,7 @@ void p3Posted::processPostRanks() GxsPostedPostRanking *gp = *vit; uint32_t status = mTokenService->requestStatus(gp->reqToken); - if(RsTokenService::GXS_REQUEST_V2_STATUS_COMPLETE - == status) + if(RsTokenService::GXS_REQUEST_V2_STATUS_COMPLETE == status) { ok = completePostedPostCalc(gp); @@ -849,7 +848,7 @@ void p3Posted::calcPostedCommentsRank(const std::map::iterator cvit = scores.begin(); int i = 1; - for(; cvit != scores.end(); cvit) + for(; cvit != scores.end(); ++cvit) { const PostedScore& p = *cvit; ranking.insert(std::make_pair(i++, p.msgId));