diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-21 10:56:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-21 19:19:49 +0100 |
| commit | 9691fc54fa6a3409520a1a42e6eeb8e6a235f5f6 (patch) | |
| tree | 283fbd5aab1b8b5e15ee388a18a32d1d7145b283 /tools | |
| parent | 76e3325a16cdf6d7220a61e2b5cfdb9c804cc32c (diff) | |
Some more use of enum class.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/common.cc | 2 | ||||
| -rw-r--r-- | tools/dcpverify.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/common.cc b/tools/common.cc index 73d62679..54bee6b5 100644 --- a/tools/common.cc +++ b/tools/common.cc @@ -47,7 +47,7 @@ dcp::filter_notes (vector<dcp::VerificationNote>& notes, bool ignore_missing_ass vector<dcp::VerificationNote> filtered; std::copy_if (notes.begin(), notes.end(), std::back_inserter(filtered), [](dcp::VerificationNote const& i) { - return i.code() != dcp::VerificationNote::MISSING_ASSET && i.code() != dcp::VerificationNote::EXTERNAL_ASSET; + return i.code() != dcp::VerificationNote::Code::MISSING_ASSET && i.code() != dcp::VerificationNote::Code::EXTERNAL_ASSET; }); notes = filtered; diff --git a/tools/dcpverify.cc b/tools/dcpverify.cc index 138f9ca3..b3ac5f06 100644 --- a/tools/dcpverify.cc +++ b/tools/dcpverify.cc @@ -143,18 +143,18 @@ main (int argc, char* argv[]) bool failed = false; BOOST_FOREACH (dcp::VerificationNote i, notes) { - if (ignore_bv21_smpte && i.code() == dcp::VerificationNote::INVALID_STANDARD) { + if (ignore_bv21_smpte && i.code() == dcp::VerificationNote::Code::INVALID_STANDARD) { continue; } switch (i.type()) { - case dcp::VerificationNote::VERIFY_ERROR: + case dcp::VerificationNote::Type::ERROR: cout << "Error: " << note_to_string(i) << "\n"; failed = true; break; - case dcp::VerificationNote::VERIFY_BV21_ERROR: + case dcp::VerificationNote::Type::BV21_ERROR: cout << "Bv2.1 error: " << note_to_string(i) << "\n"; break; - case dcp::VerificationNote::VERIFY_WARNING: + case dcp::VerificationNote::Type::WARNING: cout << "Warning: " << note_to_string(i) << "\n"; break; } |
