diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-11 01:31:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-12 22:11:27 +0100 |
| commit | dfa7b94e802b05bba4243381460eef96626102a0 (patch) | |
| tree | 348ab6b50c7b074e351f2577101ae583a1597c58 /test/threed_test.cc | |
| parent | 0f225b6df7a9603678a5bd84f9428ff6fb56aea2 (diff) | |
Replace deprecated leaf() with filename().
Diffstat (limited to 'test/threed_test.cc')
| -rw-r--r-- | test/threed_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/threed_test.cc b/test/threed_test.cc index a53b4d10e..698fcba0b 100644 --- a/test/threed_test.cc +++ b/test/threed_test.cc @@ -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); |
