Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / dcp.cc
index 05b71557e42c600f50b9e1d3dc48dc8bfd8acf26..06e3e15d5525408e9dbd62b3ca2d090fcd3c84af 100644 (file)
@@ -54,7 +54,7 @@ DCP::cpls () const
                if (!_tolerant) {
                        /** We accept and ignore EMPTY_ASSET_PATH and EXTERNAL_ASSET but everything else is bad */
                        for (auto j: notes) {
-                               if (j.code() == dcp::VerificationNote::EMPTY_ASSET_PATH || j.code() == dcp::VerificationNote::EXTERNAL_ASSET) {
+                               if (j.code() == dcp::VerificationNote::Code::EMPTY_ASSET_PATH || j.code() == dcp::VerificationNote::Code::EXTERNAL_ASSET) {
                                        LOG_WARNING("Empty path in ASSETMAP of %1", i.string());
                                } else {
                                        boost::throw_exception(dcp::ReadError(dcp::note_to_string(j)));