summaryrefslogtreecommitdiff
path: root/src/reel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-21 01:57:06 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-21 01:57:06 +0100
commit76e3325a16cdf6d7220a61e2b5cfdb9c804cc32c (patch)
tree8c1b5e5dc2cec265469a0d8018b6d7396b089432 /src/reel.cc
parent6c3db78c3d20ef064fa2a0ef38e65ca1ae69adb3 (diff)
Use enum class for the things in types.h
Diffstat (limited to 'src/reel.cc')
-rw-r--r--src/reel.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/reel.cc b/src/reel.cc
index a05a7b36..efb161bb 100644
--- a/src/reel.cc
+++ b/src/reel.cc
@@ -160,7 +160,7 @@ bool
Reel::equals (std::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandler note) const
{
if ((_main_picture && !other->_main_picture) || (!_main_picture && other->_main_picture)) {
- note (DCP_ERROR, "Reel: picture assets differ");
+ note (NoteType::ERROR, "Reel: picture assets differ");
return false;
}
@@ -169,7 +169,7 @@ Reel::equals (std::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandle
}
if ((_main_sound && !other->_main_sound) || (!_main_sound && other->_main_sound)) {
- note (DCP_ERROR, "Reel: sound assets differ");
+ note (NoteType::ERROR, "Reel: sound assets differ");
return false;
}
@@ -178,7 +178,7 @@ Reel::equals (std::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandle
}
if ((_main_subtitle && !other->_main_subtitle) || (!_main_subtitle && other->_main_subtitle)) {
- note (DCP_ERROR, "Reel: subtitle assets differ");
+ note (NoteType::ERROR, "Reel: subtitle assets differ");
return false;
}
@@ -187,12 +187,12 @@ Reel::equals (std::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandle
}
if ((_main_markers && !other->_main_markers) || (!_main_markers && other->_main_markers)) {
- note (DCP_ERROR, "Reel: one has markers and the other does not");
+ note (NoteType::ERROR, "Reel: one has markers and the other does not");
return false;
}
if (_main_markers && !_main_markers->equals(other->_main_markers, opt, note)) {
- note (DCP_ERROR, "Reel: marker assets differ");
+ note (NoteType::ERROR, "Reel: marker assets differ");
return false;
}
@@ -211,7 +211,7 @@ Reel::equals (std::shared_ptr<const Reel> other, EqualityOptions opt, NoteHandle
}
if ((_atmos && !other->_atmos) || (!_atmos && other->_atmos)) {
- note (DCP_ERROR, "Reel: atmos assets differ");
+ note (NoteType::ERROR, "Reel: atmos assets differ");
return false;
}