_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;
}
}