summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-31 03:14:24 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-31 03:14:24 +0100
commit8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8 (patch)
treef8b25b13ac3732838be259e469d045438d999e7b /src/lib/dcp_content.h
parent4985d87750c87019dfe5dc7ef44e12c45326dd0e (diff)
More enum class additions.
Diffstat (limited to 'src/lib/dcp_content.h')
-rw-r--r--src/lib/dcp_content.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h
index c235dd823..136c527a5 100644
--- a/src/lib/dcp_content.h
+++ b/src/lib/dcp_content.h
@@ -117,7 +117,7 @@ public:
*/
bool reference_text (TextType type) const {
boost::mutex::scoped_lock lm (_mutex);
- return _reference_text[type];
+ return _reference_text[static_cast<int>(type)];
}
bool can_reference_text (std::shared_ptr<const Film> film, TextType type, std::string &) const;
@@ -201,7 +201,7 @@ private:
* rather than by rewrapping. The types here are the original text types,
* not what they are being used for.
*/
- bool _reference_text[TEXT_COUNT];
+ bool _reference_text[static_cast<int>(TextType::COUNT)];
boost::optional<dcp::Standard> _standard;
boost::optional<dcp::ContentKind> _content_kind;