Hand-apply d849d411cff28ef5453085791d0b4d7cd73bd070 from master; replace all assert...
[dcpomatic.git] / src / lib / dcp_content_type.cc
index e659a9b88a7b7ce3027b09393b317f5ce7ebcf90..b7bf8d81ad14f6b48c8165aff7163854e19b3def 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include "dcp_content_type.h"
+#include "dcpomatic_assert.h"
 #include <cassert>
 
 #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];
 }