summaryrefslogtreecommitdiff
path: root/test/ffmpeg_dcp_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-11 01:31:58 +0100
committerCarl Hetherington <cth@carlh.net>2023-11-12 22:11:27 +0100
commitdfa7b94e802b05bba4243381460eef96626102a0 (patch)
tree348ab6b50c7b074e351f2577101ae583a1597c58 /test/ffmpeg_dcp_test.cc
parent0f225b6df7a9603678a5bd84f9428ff6fb56aea2 (diff)
Replace deprecated leaf() with filename().
Diffstat (limited to 'test/ffmpeg_dcp_test.cc')
-rw-r--r--test/ffmpeg_dcp_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ffmpeg_dcp_test.cc b/test/ffmpeg_dcp_test.cc
index c1c322948..c332759c8 100644
--- a/test/ffmpeg_dcp_test.cc
+++ b/test/ffmpeg_dcp_test.cc
@@ -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;
}