Skip to content

Commit

Permalink
Fix uses of deprecated Filesystem APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 15, 2024
1 parent 80d44c5 commit bf15f41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions common/src/process_jam_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "boost/filesystem/operations.hpp"
#include "boost/filesystem/fstream.hpp"
#include "boost/filesystem/exception.hpp"
#include "boost/filesystem/convenience.hpp"

#include <iostream>
#include <string>
Expand Down Expand Up @@ -453,8 +452,8 @@ namespace
~test_log()
{
fs::path pth( locate_root / m_target_directory / "test_log.xml" );
if ( create_dirs && !fs::exists( pth.branch_path() ) )
fs::create_directories( pth.branch_path() );
if ( create_dirs && !fs::exists( pth.parent_path() ) )
fs::create_directories( pth.parent_path() );
fs::ofstream file( pth );
if ( !file )
{
Expand Down Expand Up @@ -661,7 +660,7 @@ int process_jam_log( const std::vector<std::string> & args )
}
boost_root = fs::path( *args_i );
if ( !boost_root.has_root_path() )
boost_root = ( fs::initial_path() / boost_root ).normalize();
boost_root = ( fs::initial_path() / boost_root ).lexically_normal();
}
else if ( *args_i == "--locate-root" )
{
Expand Down Expand Up @@ -702,7 +701,7 @@ int process_jam_log( const std::vector<std::string> & args )
std::cout << "Abort: not able to locate the boost root\n";
return 1;
}
boost_root.normalize();
boost_root = boost_root.lexically_normal();
}


Expand All @@ -712,7 +711,7 @@ int process_jam_log( const std::vector<std::string> & args )
}
else if ( !locate_root.has_root_path() )
{
locate_root = ( fs::initial_path() / locate_root ).normalize();
locate_root = ( fs::initial_path() / locate_root ).lexically_normal();
}

if ( input == 0 )
Expand Down
1 change: 1 addition & 0 deletions library_status/src/library_status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ program maintenance.
*******************************************************************************/

#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/directory.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/foreach.hpp>

Expand Down
1 change: 0 additions & 1 deletion reports/src/html_writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define HTML_WRITER_HPP_INCLUDED

#include <boost/filesystem/path.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
Expand Down

0 comments on commit bf15f41

Please sign in to comment.