Use const reference BOOST_FOREACH version
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 12 May 2014 09:44:11 +0000 (11:44 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 12 May 2014 09:44:11 +0000 (11:44 +0200)
src/main.cpp

index bd2f004..c8669fd 100644 (file)
@@ -154,7 +154,7 @@ DelayMap calc_pinger_delays(const HostList &hosts)
     // first step: count number of hosts with same intervals
     DelayMap delay_shifts;
     int curr_interval;
-    BOOST_FOREACH( HostItem host, hosts )
+    BOOST_FOREACH( const HostItem &host, hosts )
     {
         curr_interval = host->get_interval_in_sec();
         if (! curr_interval)