diff options
author | Miguel Herranz <miguel@ipglider.org> | 2017-01-22 21:38:10 +0100 |
---|---|---|
committer | Miguel Herranz <miguel@ipglider.org> | 2017-01-22 21:38:10 +0100 |
commit | 629e3101ab54edfcadc42c6f3d7ea9c4fa3f9a93 (patch) | |
tree | f97194d4084995eda8bb10fd776881c49e1d9d88 /src/p2p/net_node.inl | |
parent | Merge pull request #1608 (diff) | |
download | monero-629e3101ab54edfcadc42c6f3d7ea9c4fa3f9a93.tar.xz |
Replace BOOST_FOREACH with C++11 ranged for
Diffstat (limited to 'src/p2p/net_node.inl')
-rw-r--r-- | src/p2p/net_node.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 0e43d9579..d67c5dd93 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1182,7 +1182,7 @@ namespace nodetool time(&now); delta = now - local_time; - BOOST_FOREACH(peerlist_entry& be, local_peerlist) + for(peerlist_entry& be: local_peerlist) { if(be.last_seen > local_time) { @@ -1320,7 +1320,7 @@ namespace nodetool template<class t_payload_net_handler> bool node_server<t_payload_net_handler>::relay_notify_to_list(int command, const std::string& data_buff, const std::list<boost::uuids::uuid> &connections) { - BOOST_FOREACH(const auto& c_id, connections) + for(const auto& c_id: connections) { m_net_server.get_config_object().notify(command, data_buff, c_id); } |