From 1c724e363a644abaee7efb39d6091e7b30de0fb6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 22 Jan 2014 19:42:39 +0000 Subject: Various work. --- src/dcp.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/dcp.cc') diff --git a/src/dcp.cc b/src/dcp.cc index 495b14a4..a5b0c6e4 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -108,8 +108,8 @@ DCP::write_pkl (string pkl_uuid, bool interop, XMLMetadata const & metadata, sha pkl->add_child("Creator")->add_child_text (metadata.creator); xmlpp::Element* asset_list = pkl->add_child("AssetList"); - list > a = assets (); - for (list >::const_iterator i = a.begin(); i != a.end(); ++i) { + list > a = assets (); + for (list >::const_iterator i = a.begin(); i != a.end(); ++i) { (*i)->write_to_pkl (asset_list); } @@ -191,8 +191,8 @@ DCP::write_assetmap (string pkl_uuid, int pkl_length, bool interop, XMLMetadata (*i)->write_to_assetmap (asset_list); } - list > a = assets (); - for (list >::const_iterator i = a.begin(); i != a.end(); ++i) { + list > a = assets (); + for (list >::const_iterator i = a.begin(); i != a.end(); ++i) { (*i)->write_to_assetmap (asset_list); } @@ -321,17 +321,17 @@ DCP::add_cpl (shared_ptr cpl) class AssetComparator { public: - bool operator() (shared_ptr a, shared_ptr b) { - return a->uuid() < b->uuid(); + bool operator() (shared_ptr a, shared_ptr b) { + return a->id() < b->id(); } }; -list > +list > DCP::assets () const { - list > a; + list > a; for (list >::const_iterator i = _cpls.begin(); i != _cpls.end(); ++i) { - list > t = (*i)->assets (); + list > t = (*i)->assets (); a.merge (t); } -- cgit v1.2.3