Use a constexpr and a nullptr.
[dcpomatic.git] / test / film_metadata_test.cc
index 6d4c606e29936c964e1bf374c393da84117efdc5..f1313497adae172d82fbe3396a9c29d1a169ee97 100644 (file)
@@ -51,7 +51,7 @@ BOOST_AUTO_TEST_CASE (film_metadata_test)
 
        film->_isdcf_date = boost::gregorian::from_undelimited_string ("20130211");
        BOOST_CHECK (film->container() == Ratio::from_id ("185"));
-       BOOST_CHECK (film->dcp_content_type() == 0);
+       BOOST_CHECK (film->dcp_content_type() == nullptr);
 
        film->set_name ("fred");
        film->set_dcp_content_type (DCPContentType::from_isdcf_name ("SHR"));