Get progress during formatting.
[dcpomatic.git] / src / lib / verify_dcp_job.cc
index 3d28fe759d83c4c7d5862a9913883d1406b4e6d1..bd5634669985116de4b74ee9aa6ca9609973bcfe 100644 (file)
@@ -26,7 +26,7 @@
 
 using std::string;
 using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
@@ -68,11 +68,11 @@ VerifyDCPJob::update_stage (string s, optional<boost::filesystem::path> path)
 void
 VerifyDCPJob::run ()
 {
-       _notes = dcp::verify (_directories, bind (&VerifyDCPJob::update_stage, this, _1, _2), bind (&VerifyDCPJob::set_progress, this, _1, false), shared_path() / "xsd");
+       _notes = dcp::verify (_directories, bind (&VerifyDCPJob::update_stage, this, _1, _2), bind (&VerifyDCPJob::set_progress, this, _1, false), xsd_path());
 
        bool failed = false;
-       BOOST_FOREACH (dcp::VerificationNote i, _notes) {
-               if (i.type() == dcp::VerificationNote::VERIFY_ERROR) {
+       for (auto i: _notes) {
+               if (i.type() == dcp::VerificationNote::Type::ERROR) {
                        failed = true;
                }
        }