Replace deprecated leaf() with filename().
[dcpomatic.git] / test / threed_test.cc
index a53b4d10e3ce2c39a29818dbad4c1e8deab9cc53..698fcba0b50de8cf35f0b0392b01fc2d08104eaa 100644 (file)
@@ -319,7 +319,7 @@ BOOST_AUTO_TEST_CASE(threed_passthrough_test, * boost::unit_test::depends_on("th
 
        std::vector<directory_entry> matches;
        std::copy_if(recursive_directory_iterator(*input_dcp), recursive_directory_iterator(), std::back_inserter(matches), [](directory_entry const& entry) {
-               return boost::algorithm::starts_with(entry.path().leaf().string(), "j2c");
+               return boost::algorithm::starts_with(entry.path().filename().string(), "j2c");
        });
 
        BOOST_REQUIRE_EQUAL(matches.size(), 1U);