mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
changed post fixed operator++ into prefixed. More efficient on some systems. Patch from Phenom.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7630 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
880efee332
commit
d547cb6fdb
82 changed files with 717 additions and 718 deletions
|
@ -272,7 +272,7 @@ void pqipersongrp::statusChange(const std::list<pqipeer> &plist)
|
|||
|
||||
/* iterate through, only worry about the friends */
|
||||
std::list<pqipeer>::const_iterator it;
|
||||
for(it = plist.begin(); it != plist.end(); it++)
|
||||
for(it = plist.begin(); it != plist.end(); ++it)
|
||||
{
|
||||
if (it->state & RS_PEER_S_FRIEND)
|
||||
{
|
||||
|
@ -339,7 +339,7 @@ void pqipersongrp::statusChanged()
|
|||
|
||||
/* count connection attempts */
|
||||
std::list<RsPeerId>::iterator peer;
|
||||
for (peer = peers.begin(); peer != peers.end(); peer++) {
|
||||
for (peer = peers.begin(); peer != peers.end(); ++peer) {
|
||||
peerConnectState state;
|
||||
if (mLinkMgr->getFriendNetStatus(*peer, state) == false) {
|
||||
continue;
|
||||
|
@ -383,7 +383,7 @@ void pqipersongrp::statusChanged()
|
|||
} /* UNLOCKED */
|
||||
|
||||
std::list<RsPeerId>::iterator cit;
|
||||
for(cit = toConnect.begin(); cit != toConnect.end(); cit++)
|
||||
for(cit = toConnect.begin(); cit != toConnect.end(); ++cit)
|
||||
{
|
||||
connectPeer(*cit, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue