replace piForeach* to for(:)
another c++11 try ...
This commit is contained in:
@@ -491,7 +491,7 @@ bool PIPeer::dataRead(uchar * readed, int size) {
|
||||
if (p.name != from) continue;
|
||||
piForeach (PeerInfo::PeerAddress & a, p.addresses) {
|
||||
if (a.address != addr) continue;
|
||||
if (a.last_ping >= time) piBreak;
|
||||
if (a.last_ping >= time) break;
|
||||
ptime = ctime - time;
|
||||
a.last_ping = time;
|
||||
a.wait_ping = false;
|
||||
@@ -677,7 +677,7 @@ bool PIPeer::mbcastRead(uchar * data, int size) {
|
||||
if (peer.name == pi.name) peer.sync = 0;
|
||||
ch = true;
|
||||
}
|
||||
piBreak;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (exist || isRemoved(rpeer)) continue;
|
||||
|
||||
Reference in New Issue
Block a user