diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2014-05-06 07:38:19 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2014-05-12 07:18:45 -0700 |
commit | 468e7f35afc358c8e151cbc2ecef05505f3275c5 (patch) | |
tree | 26dd45a40950c165cc9180089cb4b3713f9082fe /host | |
parent | 0e51394db05b3e66ed5f7335eff363d658b3f47c (diff) | |
download | uhd-468e7f35afc358c8e151cbc2ecef05505f3275c5.tar.gz uhd-468e7f35afc358c8e151cbc2ecef05505f3275c5.tar.bz2 uhd-468e7f35afc358c8e151cbc2ecef05505f3275c5.zip |
log: replaced usage of deprecated boost::filesystem function
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/utils/log.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/utils/log.cpp b/host/lib/utils/log.cpp index d6d1786c7..31ee0c991 100644 --- a/host/lib/utils/log.cpp +++ b/host/lib/utils/log.cpp @@ -1,5 +1,5 @@ // -// Copyright 2012 Ettus Research LLC +// Copyright 2012,2014 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -117,11 +117,11 @@ UHD_SINGLETON_FCN(log_resource_type, log_rs); **********************************************************************/ //! get the relative file path from the host directory static std::string get_rel_file_path(const fs::path &file){ - fs::path abs_path = file.branch_path(); + fs::path abs_path = file.parent_path(); fs::path rel_path = file.leaf(); while (not abs_path.empty() and abs_path.leaf() != "host"){ rel_path = abs_path.leaf() / rel_path; - abs_path = abs_path.branch_path(); + abs_path = abs_path.parent_path(); } return rel_path.string(); } |