X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdkdm_wrapper.cc;h=74a71966e87b4667e0ab38b4361556a4ac3b89d9;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hp=23539bd94a4912ae24c5b62a8e6e2bd740ab6506;hpb=a332bd6be323f03dad5b180fb237afe54f1bf81e;p=dcpomatic.git diff --git a/src/lib/dkdm_wrapper.cc b/src/lib/dkdm_wrapper.cc index 23539bd94..74a71966e 100644 --- a/src/lib/dkdm_wrapper.cc +++ b/src/lib/dkdm_wrapper.cc @@ -25,12 +25,11 @@ DCPOMATIC_DISABLE_WARNINGS #include DCPOMATIC_ENABLE_WARNINGS -#include using std::string; using std::list; -using boost::shared_ptr; -using boost::dynamic_pointer_cast; +using std::shared_ptr; +using std::dynamic_pointer_cast; shared_ptr DKDMBase::read (cxml::ConstNodePtr node) @@ -39,7 +38,7 @@ DKDMBase::read (cxml::ConstNodePtr node) return shared_ptr (new DKDM (dcp::EncryptedKDM (node->content ()))); } else if (node->name() == "DKDMGroup") { shared_ptr group (new DKDMGroup (node->string_attribute ("Name"))); - BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children()) { + for (auto i: node->node_children()) { shared_ptr 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 i, _children) { + for (auto i: _children) { i->as_xml (f); } }