summaryrefslogtreecommitdiff
path: root/tools/dcpdiff.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-11 00:16:40 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-17 20:13:23 +0100
commitd95eacd3851a20e52202465ec22b4f72a4983dc8 (patch)
tree1dfc1092ae7d2e6b6b7c313ad808415f578d9712 /tools/dcpdiff.cc
parentcbee0d077e698541afcea82a95bafcea5245ab89 (diff)
Replace std::list with std::vector in the API.
Diffstat (limited to 'tools/dcpdiff.cc')
-rw-r--r--tools/dcpdiff.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc
index 5f9911d4..7da55ccc 100644
--- a/tools/dcpdiff.cc
+++ b/tools/dcpdiff.cc
@@ -48,6 +48,7 @@ using std::cerr;
using std::cout;
using std::string;
using std::shared_ptr;
+using std::vector;
using boost::optional;
using std::dynamic_pointer_cast;
#if BOOST_VERSION >= 106100
@@ -95,7 +96,7 @@ load_dcp (boost::filesystem::path path, bool ignore_missing_assets, optional<str
DCP* dcp = 0;
try {
dcp = new DCP (path);
- list<dcp::VerificationNote> notes;
+ vector<dcp::VerificationNote> notes;
dcp->read (&notes);
filter_notes (notes, ignore_missing_assets);
BOOST_FOREACH (dcp::VerificationNote i, notes) {
@@ -103,9 +104,9 @@ load_dcp (boost::filesystem::path path, bool ignore_missing_assets, optional<str
}
if (key) {
- list<shared_ptr<Asset> > assets = dcp->assets ();
- for (list<shared_ptr<Asset> >::const_iterator i = assets.begin(); i != assets.end(); ++i) {
- shared_ptr<MXF> mxf = dynamic_pointer_cast<MXF> (*i);
+ auto assets = dcp->assets ();
+ for (auto i: assets) {
+ shared_ptr<MXF> mxf = dynamic_pointer_cast<MXF>(i);
if (mxf) {
mxf->set_key (Key (key.get ()));
}