Skip to content

Commit

Permalink
Updated Boost.Filesystem usage.
Browse files Browse the repository at this point in the history
Removed usage of Boost.Filesystem APIs that were deprecated and
then removed.
  • Loading branch information
Lastique committed Jan 26, 2024
1 parent 822c19e commit f8bf802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/extension/io/png/png_file_format_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ void test_file_format()
if (fs::is_regular(dir_itr->status()) && (fs::extension(dir_itr->path()) == ".PNG"))
{
gil::rgb8_image_t img;
std::string filename = in + dir_itr->path().leaf().string();
std::string filename = in + dir_itr->path().filename().string();
gil::read_and_convert_image(filename, img, gil::png_tag());

#ifdef BOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES
gil::write_view(png_out + fs::basename(dir_itr->path()) + ".png",
gil::write_view(png_out + dir_itr->path().stem() + ".png",
gil::view(img), gil::png_tag());
#endif // BOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES
}
Expand Down

0 comments on commit f8bf802

Please sign in to comment.