X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdkdm_recipient.cc;h=22da53f3babb5b13c0be0d3e211e4b407a048509;hp=f03a1597b8bfd093aa5abe08eb6bb3877097d981;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hpb=3e96f929fdf740f414b114c5d9765e22fcc46de6 diff --git a/src/lib/dkdm_recipient.cc b/src/lib/dkdm_recipient.cc index f03a1597b..22da53f3b 100644 --- a/src/lib/dkdm_recipient.cc +++ b/src/lib/dkdm_recipient.cc @@ -22,19 +22,18 @@ #include "kdm_with_metadata.h" #include "film.h" #include -#include using std::string; using std::vector; -using boost::shared_ptr; +using std::shared_ptr; using dcp::raw_convert; DKDMRecipient::DKDMRecipient (cxml::ConstNodePtr node) : KDMRecipient (node) { - BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children("Email")) { + for (auto i: node->node_children("Email")) { emails.push_back (i->content()); } @@ -48,7 +47,7 @@ DKDMRecipient::as_xml (xmlpp::Element* node) const { KDMRecipient::as_xml (node); - BOOST_FOREACH (string i, emails) { + for (auto i: emails) { node->add_child("Email")->add_child_text(i); } @@ -90,6 +89,6 @@ kdm_for_dkdm_recipient ( name_values['e'] = end.date() + " " + end.time_of_day(true, false); name_values['i'] = kdm.cpl_id(); - return KDMWithMetadataPtr(new DCPKDMWithMetadata(name_values, 0, recipient->emails, kdm)); + return KDMWithMetadataPtr(new KDMWithMetadata(name_values, 0, recipient->emails, kdm)); }