projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More enum class additions.
[dcpomatic.git]
/
src
/
lib
/
dcp_content.h
diff --git
a/src/lib/dcp_content.h
b/src/lib/dcp_content.h
index c235dd823c975df375042a30d8dd4f61c8df5503..136c527a5c3d7bf84931ca3b2c3fc4b34483684d 100644
(file)
--- 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);
*/
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;
}
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.
*/
* 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;
boost::optional<dcp::Standard> _standard;
boost::optional<dcp::ContentKind> _content_kind;