From c086c9e63cc53cf4ca491cf141fc3ec212f8ba7b Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 12 May 2014 11:44:11 +0200 Subject: [PATCH] Use const reference BOOST_FOREACH version --- src/main.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bd2f004..c8669fd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) -- 1.7.1