From 1215fe2471b6d45d61d5ae4e36b1c16c8bca3e0f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 20 Mar 2018 00:41:02 +0000 Subject: Use prefix to avoid ERROR enum. --- src/verify.cc | 4 ++-- src/verify.h | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/verify.cc b/src/verify.cc index 76d7c18d..8f850e83 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -59,9 +59,9 @@ dcp::verify (vector directories) try { i->read (true, &errors); } catch (DCPReadError& e) { - notes.push_back (VerificationNote (VerificationNote::ERROR, e.what ())); + notes.push_back (VerificationNote (VerificationNote::VERIFY_ERROR, e.what ())); } catch (XMLError& e) { - notes.push_back (VerificationNote (VerificationNote::ERROR, e.what ())); + notes.push_back (VerificationNote (VerificationNote::VERIFY_ERROR, e.what ())); } } diff --git a/src/verify.h b/src/verify.h index 63f47e28..3538722e 100644 --- a/src/verify.h +++ b/src/verify.h @@ -44,10 +44,13 @@ namespace dcp { class VerificationNote { public: + /* I've been unable to make mingw happy with ERROR as a symbol, so + I'm using a VERIFY_ prefix here. + */ enum Type { - ERROR, - WARNING, - NOTE + VERIFY_ERROR, + VERIFY_WARNING, + VERIFY_NOTE }; VerificationNote (Type type, std::string note) -- cgit v1.2.3