git://developer.intra2net.com
/
pingcheck
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5973343
)
Use const reference BOOST_FOREACH version
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 12 May 2014 09:44:11 +0000 (11:44 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 12 May 2014 09:44:11 +0000 (11:44 +0200)
src/main.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
bd2f004
..
c8669fd
100644
(file)
--- 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)