]> granicus.if.org Git - pdns/commitdiff
further for range cleanups
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 26 Nov 2015 21:53:19 +0000 (22:53 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 26 Nov 2015 21:53:19 +0000 (22:53 +0100)
pdns/rec_channel_rec.cc

index a639b9b84f0c883278a0ee10150fe5f3e29d4ffd..8bdcdd436c97e37a36a82e8ecaacce3e4075ed9f 100644 (file)
@@ -70,17 +70,13 @@ map<string,string> getAllStatsMap()
 {
   map<string,string> ret;
   
-  pair<string, const uint32_t*> the32bits;
-  pair<string, const uint64_t*> the64bits;
-  pair<string, function< uint32_t() > >  the32bitmembers;
-  
-  BOOST_FOREACH(the32bits, d_get32bitpointers) {
+  for(const auto& the32bits :  d_get32bitpointers) {
     ret.insert(make_pair(the32bits.first, lexical_cast<string>(*the32bits.second)));
   }
-  BOOST_FOREACH(the64bits, d_get64bitpointers) {
+  for(const auto& the64bits :  d_get64bitpointers) {
     ret.insert(make_pair(the64bits.first, lexical_cast<string>(*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<string>(the32bitmembers.second())));