diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-22 01:39:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-22 01:39:22 +0100 |
| commit | 5fbcd3a8dc711c6c42efabbac72ab0408f504ea2 (patch) | |
| tree | dfc84a000b2e2c67b6c73c2b8809b5da3137ecc4 /src/util.cc | |
| parent | bebe2f996176113a527bf2492fd179420493d0ff (diff) | |
Assorted c++11 cleanups.
Diffstat (limited to 'src/util.cc')
| -rw-r--r-- | src/util.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc index f775c507..2aaeddb5 100644 --- a/src/util.cc +++ b/src/util.cc @@ -56,7 +56,6 @@ #include <openssl/sha.h> #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> -#include <boost/foreach.hpp> #include <stdexcept> #include <iostream> #include <iomanip> @@ -389,8 +388,8 @@ void dcp::indent (xmlpp::Element* element, int initial) { xmlpp::Node* last = 0; - BOOST_FOREACH (xmlpp::Node * n, element->get_children()) { - xmlpp::Element* e = dynamic_cast<xmlpp::Element*>(n); + for (auto n: element->get_children()) { + auto e = dynamic_cast<xmlpp::Element*>(n); if (e) { element->add_child_text_before (e, "\n" + spaces(initial + 2)); indent (e, initial + 2); |
