X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=tools%2Fdcpdiff.cc;h=1f76082958bf3e68a1f17f4b50ac03a6768a8896;hb=e61267217a8ca7e65ad42bf34b6488b92eca6389;hp=7da55ccc2677de2dd6184d9a2200b2bcc47835ed;hpb=d95eacd3851a20e52202465ec22b4f72a4983dc8;p=libdcp.git diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc index 7da55ccc..1f760829 100644 --- a/tools/dcpdiff.cc +++ b/tools/dcpdiff.cc @@ -39,7 +39,6 @@ #include #include #include -#include #include #include @@ -83,7 +82,7 @@ help (string n) void note (NoteType t, string n) { - if (t == DCP_ERROR || verbose) { + if (t == NoteType::ERROR || verbose) { cout << " " << n << "\n"; cout.flush (); } @@ -99,14 +98,14 @@ load_dcp (boost::filesystem::path path, bool ignore_missing_assets, optional notes; dcp->read (¬es); filter_notes (notes, ignore_missing_assets); - BOOST_FOREACH (dcp::VerificationNote i, notes) { + for (auto i: notes) { cerr << dcp::note_to_string(i) << "\n"; } if (key) { auto assets = dcp->assets (); for (auto i: assets) { - shared_ptr mxf = dynamic_pointer_cast(i); + auto mxf = dynamic_pointer_cast(i); if (mxf) { mxf->set_key (Key (key.get ())); }