Replace deprecated leaf() with filename().
[dcpomatic.git] / test / ffmpeg_dcp_test.cc
index c1c32294814a4f01576f5fc92fdcfaf80044756e..c332759c8f96c6dbab245fdc717d74370cef3c96 100644 (file)
@@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_have_dcp_test, * boost::unit_test::depends_on("ffmp
 
        p /= film->dcp_name();
        auto i = boost::filesystem::directory_iterator (p);
-       while (i != boost::filesystem::directory_iterator() && !boost::algorithm::starts_with (i->path().leaf().string(), "j2c")) {
+       while (i != boost::filesystem::directory_iterator() && !boost::algorithm::starts_with(i->path().filename().string(), "j2c")) {
                ++i;
        }