diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:32:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 23:27:56 +0100 |
| commit | a5d004b0773f633401528392fc28e66d70e13ac8 (patch) | |
| tree | 9f83ff2ab353f5a63918210d4930d0ead228375e /src/lib/dkdm_wrapper.cc | |
| parent | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff) | |
BOOST_FOREACH.
Diffstat (limited to 'src/lib/dkdm_wrapper.cc')
| -rw-r--r-- | src/lib/dkdm_wrapper.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/dkdm_wrapper.cc b/src/lib/dkdm_wrapper.cc index 66f67114d..74a71966e 100644 --- a/src/lib/dkdm_wrapper.cc +++ b/src/lib/dkdm_wrapper.cc @@ -25,7 +25,6 @@ DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> DCPOMATIC_ENABLE_WARNINGS -#include <boost/foreach.hpp> using std::string; using std::list; @@ -39,7 +38,7 @@ DKDMBase::read (cxml::ConstNodePtr node) return shared_ptr<DKDM> (new DKDM (dcp::EncryptedKDM (node->content ()))); } else if (node->name() == "DKDMGroup") { shared_ptr<DKDMGroup> group (new DKDMGroup (node->string_attribute ("Name"))); - BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children()) { + for (auto i: node->node_children()) { shared_ptr<DKDMBase> c = read (i); if (c) { group->add (c); @@ -68,7 +67,7 @@ DKDMGroup::as_xml (xmlpp::Element* node) const { xmlpp::Element* f = node->add_child("DKDMGroup"); f->set_attribute ("Name", _name); - BOOST_FOREACH (shared_ptr<DKDMBase> i, _children) { + for (auto i: _children) { i->as_xml (f); } } |
