From 17847dc1bc68516bda8ca92e8561064dde896530 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 27 Sep 2022 00:34:17 +0200 Subject: Use EnumIndexedVector in DCPContent. --- src/lib/dcp_content.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/dcp_content.h') 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 #include @@ -123,7 +124,7 @@ public: */ bool reference_text (TextType type) const { boost::mutex::scoped_lock lm (_mutex); - return _reference_text[static_cast(type)]; + return _reference_text[type]; } bool can_reference_text (std::shared_ptr 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(TextType::COUNT)]; + EnumIndexedVector _reference_text; boost::optional _standard; boost::optional _content_kind; -- cgit v1.2.3