diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-27 00:34:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-27 13:46:16 +0200 |
| commit | 17847dc1bc68516bda8ca92e8561064dde896530 (patch) | |
| tree | 51bb78738d0b8eff4abe15f33fb288215529712d /src/lib/dcp_content.h | |
| parent | e0bcd3514f586b250a56c5049053476c4c002dc5 (diff) | |
Use EnumIndexedVector in DCPContent.
Diffstat (limited to 'src/lib/dcp_content.h')
| -rw-r--r-- | src/lib/dcp_content.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index efdfe30f7..17a9a9386 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -29,6 +29,7 @@ #include "content.h" +#include "enum_indexed_vector.h" #include "font.h" #include <libcxml/cxml.h> #include <dcp/content_kind.h> @@ -123,7 +124,7 @@ public: */ bool reference_text (TextType type) const { boost::mutex::scoped_lock lm (_mutex); - return _reference_text[static_cast<int>(type)]; + return _reference_text[type]; } bool can_reference_text (std::shared_ptr<const Film> film, TextType type, std::string &) const; @@ -209,7 +210,7 @@ private: * rather than by rewrapping. The types here are the original text types, * not what they are being used for. */ - bool _reference_text[static_cast<int>(TextType::COUNT)]; + EnumIndexedVector<bool, TextType> _reference_text; boost::optional<dcp::Standard> _standard; boost::optional<dcp::ContentKind> _content_kind; |
