summaryrefslogtreecommitdiff
path: root/tools/inspect/link_check.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-08-05 19:32:57 +0000
committer <>2014-10-07 10:01:33 +0000
commit1c3648bf5b7d17fcd4fe9bc95802b16fd9eee304 (patch)
tree03de66686a262696ec2ac408e62250dc1f0c01aa /tools/inspect/link_check.cpp
parent8c4528713d907ee2cfd3bfcbbad272c749867f84 (diff)
downloadboost-tarball-1c3648bf5b7d17fcd4fe9bc95802b16fd9eee304.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_56_0.tar.bz2.boost_1_56_0
Diffstat (limited to 'tools/inspect/link_check.cpp')
-rw-r--r--tools/inspect/link_check.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/inspect/link_check.cpp b/tools/inspect/link_check.cpp
index ca692bdfb..182af3bf7 100644
--- a/tools/inspect/link_check.cpp
+++ b/tools/inspect/link_check.cpp
@@ -123,7 +123,7 @@ namespace boost
{
// keep track of paths already encountered to reduce disk activity
if ( !fs::is_directory( full_path ) )
- m_paths[ relative_to( full_path, fs::initial_path() ) ] |= m_present;
+ m_paths[ relative_to( full_path, search_root_path() ) ] |= m_present;
}
// inspect ( .htm, .html, .shtml, .css ) -----------------------------------//
@@ -134,7 +134,7 @@ namespace boost
const string & contents ) // contents of file to be inspected
{
if (contents.find( "boostinspect:" "nounlinked" ) != string::npos)
- m_paths[ relative_to( full_path, fs::initial_path() ) ] |= m_nounlinked_errors;
+ m_paths[ relative_to( full_path, search_root_path() ) ] |= m_nounlinked_errors;
bool no_link_errors =
(contents.find( "boostinspect:" "nolink" ) != string::npos);
@@ -438,7 +438,7 @@ namespace boost
// create a m_paths entry if necessary
std::pair< const string, int > entry(
- relative_to( target_path, fs::initial_path() ), 0 );
+ relative_to( target_path, search_root_path() ), 0 );
m_path_map::iterator itr( m_paths.find( entry.first ) );
if ( itr == m_paths.end() )
{
@@ -476,7 +476,7 @@ namespace boost
&& itr->first.rfind( "index.htm" ) == string::npos )
{
++m_unlinked_errors;
- path full_path( fs::initial_path() / path(itr->first) );
+ path full_path( search_root_path() / path(itr->first) );
error( impute_library( full_path ), full_path, "Unlinked file" );
}
}