diff options
author | Josh Blum <josh@joshknows.com> | 2011-03-15 18:21:59 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-03-15 18:21:59 -0700 |
commit | 0d0d03d08d13037da2f2f1c85e546addff32aa69 (patch) | |
tree | 0e5b823c84f4d00b7c77d07d42be45d24de57362 /host/lib/utils/images.cpp | |
parent | 3a1ad3f13c41a448083100ada6d4162a0092ee58 (diff) | |
download | uhd-0d0d03d08d13037da2f2f1c85e546addff32aa69.tar.gz uhd-0d0d03d08d13037da2f2f1c85e546addff32aa69.tar.bz2 uhd-0d0d03d08d13037da2f2f1c85e546addff32aa69.zip |
uhd: replace file_string() with string() for deprecation reasons
Patch from moritz.fischer@student.kit.edu
[1] http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/deprecated.html
[2] http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm
Boost 1.36 appears to have string(), so this should be safe to use.
Diffstat (limited to 'host/lib/utils/images.cpp')
-rw-r--r-- | host/lib/utils/images.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/utils/images.cpp b/host/lib/utils/images.cpp index 395e542c1..24a599322 100644 --- a/host/lib/utils/images.cpp +++ b/host/lib/utils/images.cpp @@ -30,11 +30,11 @@ std::vector<fs::path> get_image_paths(void); //defined in paths.cpp **********************************************************************/ std::string uhd::find_image_path(const std::string &image_name){ if (fs::exists(image_name)){ - return fs::system_complete(image_name).file_string(); + return fs::system_complete(image_name).string(); } BOOST_FOREACH(const fs::path &path, get_image_paths()){ fs::path image_path = path / image_name; - if (fs::exists(image_path)) return image_path.file_string(); + if (fs::exists(image_path)) return image_path.string(); } throw std::runtime_error("Could not find path for image: " + image_name); } |