X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdcp_content_type.cc;h=b7bf8d81ad14f6b48c8165aff7163854e19b3def;hp=e5466e1398936c1e4917efe11e95fa1cf5b12472;hb=aeb835a18c8df347e0ed68fb24631b320abeb611;hpb=f0edd6ab35c3c2b7800a26ec8206adab75e5f633 diff --git a/src/lib/dcp_content_type.cc b/src/lib/dcp_content_type.cc index e5466e139..b7bf8d81a 100644 --- a/src/lib/dcp_content_type.cc +++ b/src/lib/dcp_content_type.cc @@ -21,8 +21,9 @@ * @brief A description of the type of content for a DCP (e.g. feature, trailer etc.) */ -#include #include "dcp_content_type.h" +#include "dcpomatic_assert.h" +#include #include "i18n.h" @@ -80,7 +81,7 @@ DCPContentType::from_isdcf_name (string n) DCPContentType const * DCPContentType::from_index (int n) { - assert (n >= 0 && n < int (_dcp_content_types.size ())); + DCPOMATIC_ASSERT (n >= 0 && n < int (_dcp_content_types.size ())); return _dcp_content_types[n]; }