From b090f02daa157aa23b8cfe536a70139ab84dfd4a Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 27 Jan 2024 00:49:58 +0300 Subject: [PATCH] Updated Boost.Filesystem usage. Removed usage of Boost.Filesystem APIs that were deprecated and then removed. --- test/extension/io/png/png_file_format_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/extension/io/png/png_file_format_test.cpp b/test/extension/io/png/png_file_format_test.cpp index f5713ca094..c85dd79147 100644 --- a/test/extension/io/png/png_file_format_test.cpp +++ b/test/extension/io/png/png_file_format_test.cpp @@ -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().string() + ".png", gil::view(img), gil::png_tag()); #endif // BOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES }