From cbd05f37a3e789b986b5aa4cfac1c8b6abc89c64 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 26 Nov 2015 22:53:19 +0100 Subject: [PATCH] further for range cleanups --- pdns/rec_channel_rec.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index a639b9b84..8bdcdd436 100644 --- a/pdns/rec_channel_rec.cc +++ b/pdns/rec_channel_rec.cc @@ -70,17 +70,13 @@ map getAllStatsMap() { map ret; - pair the32bits; - pair the64bits; - pair > the32bitmembers; - - BOOST_FOREACH(the32bits, d_get32bitpointers) { + for(const auto& the32bits : d_get32bitpointers) { ret.insert(make_pair(the32bits.first, lexical_cast(*the32bits.second))); } - BOOST_FOREACH(the64bits, d_get64bitpointers) { + for(const auto& the64bits : d_get64bitpointers) { ret.insert(make_pair(the64bits.first, lexical_cast(*the64bits.second))); } - BOOST_FOREACH(the32bitmembers, d_get32bitmembers) { + for(const auto& the32bitmembers : d_get32bitmembers) { if(the32bitmembers.first == "cache-bytes" || the32bitmembers.first=="packetcache-bytes") continue; // too slow for 'get-all' ret.insert(make_pair(the32bitmembers.first, lexical_cast(the32bitmembers.second()))); -- 2.40.0