summaryrefslogtreecommitdiff
path: root/node/IncomingPacket.cpp
diff options
context:
space:
mode:
authorSuad Halilovic <[email protected]>2020-07-16 18:31:56 +0200
committerSuad Halilovic <[email protected]>2020-07-16 18:31:56 +0200
commitffebcd247fcc5fec9aee85c26da581cee8a09d72 (patch)
tree2063d53161ed9a07caa22b7804d61d1bfaefef27 /node/IncomingPacket.cpp
parentb6b11dbf8242ff17c58f10f817d754da3f8c00eb (diff)
2020/07/16, Minor optmizations
Diffstat (limited to 'node/IncomingPacket.cpp')
-rw-r--r--node/IncomingPacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp
index 331446ce..d6f6d951 100644
--- a/node/IncomingPacket.cpp
+++ b/node/IncomingPacket.cpp
@@ -427,7 +427,7 @@ bool IncomingPacket::_doHELLO(const RuntimeEnvironment *RR,void *tPtr,const bool
if ((planetWorldId)&&(RR->topology->planetWorldTimestamp() > planetWorldTimestamp)&&(planetWorldId == RR->topology->planetWorldId())) {
RR->topology->planet().serialize(outp,false);
}
- if (moonIdsAndTimestamps.size() > 0) {
+ if (!moonIdsAndTimestamps.empty()) {
std::vector<World> moons(RR->topology->moons());
for(std::vector<World>::const_iterator m(moons.begin());m!=moons.end();++m) {
for(std::vector< std::pair<uint64_t,uint64_t> >::const_iterator i(moonIdsAndTimestamps.begin());i!=moonIdsAndTimestamps.end();++i) {