diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-27 00:35:42 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-27 13:46:16 +0200 |
| commit | d0da1d77b1fc2f65eeab8572e5ee76bf85094dda (patch) | |
| tree | 1f949166bb046f006b7857f07c4cfde02a2dd385 /src/lib/dcp_examiner.h | |
| parent | 17847dc1bc68516bda8ca92e8561064dde896530 (diff) | |
Use EnumIndexedVector in DCPExaminer.
Diffstat (limited to 'src/lib/dcp_examiner.h')
| -rw-r--r-- | src/lib/dcp_examiner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h index 6b88a3c0d..75ea8b68c 100644 --- a/src/lib/dcp_examiner.h +++ b/src/lib/dcp_examiner.h @@ -106,7 +106,7 @@ public: * @return Number of assets of this type in this DCP. */ int text_count (TextType type) const { - return _text_count[static_cast<int>(type)]; + return _text_count[type]; } boost::optional<dcp::LanguageTag> open_subtitle_language () const { @@ -186,7 +186,7 @@ private: bool _has_audio = false; boost::optional<dcp::LanguageTag> _audio_language; /** number of different assets of each type (OCAP/CCAP) */ - int _text_count[static_cast<int>(TextType::COUNT)]; + EnumIndexedVector<int, TextType> _text_count; boost::optional<dcp::LanguageTag> _open_subtitle_language; /** the DCPTextTracks for each of our CCAPs */ std::vector<DCPTextTrack> _dcp_text_tracks; |
