Make dcp::init() take a general resources directory rather than specifically tags.
[libdcp.git] / tools / dcpdiff.cc
index 7da55ccc2677de2dd6184d9a2200b2bcc47835ed..1f76082958bf3e68a1f17f4b50ac03a6768a8896 100644 (file)
@@ -39,7 +39,6 @@
 #include <boost/optional.hpp>
 #include <memory>
 #include <boost/filesystem.hpp>
-#include <boost/foreach.hpp>
 #include <iostream>
 #include <list>
 
@@ -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<str
                vector<dcp::VerificationNote> notes;
                dcp->read (&notes);
                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> mxf = dynamic_pointer_cast<MXF>(i);
+                               auto mxf = dynamic_pointer_cast<MXF>(i);
                                if (mxf) {
                                        mxf->set_key (Key (key.get ()));
                                }