diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-05-30 19:52:47 -0400 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-05-30 19:52:47 -0400 |
commit | d51837b9f0b0066a460e472033e682a385052635 (patch) | |
tree | f627edc1ed76cf43cfbc2334dffb9870e65bedd0 /xsde/cxx/hybrid/elements.cxx | |
parent | 62ba9ea0f51b6ae6232a3eb7e71fcb9e84d6a1e5 (diff) |
Get rid of dependency on Boost filesystem
Diffstat (limited to 'xsde/cxx/hybrid/elements.cxx')
-rw-r--r-- | xsde/cxx/hybrid/elements.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xsde/cxx/hybrid/elements.cxx b/xsde/cxx/hybrid/elements.cxx index fe1e533..0f49311 100644 --- a/xsde/cxx/hybrid/elements.cxx +++ b/xsde/cxx/hybrid/elements.cxx @@ -592,6 +592,7 @@ namespace CXX s.context ().count ("renamed") ? s.context ().get<SemanticGraph::Path> ("renamed") : u.path ()); + path.normalize (); // Try to use the portable representation of the path. If that // fails, fall back to the native representation. @@ -599,11 +600,11 @@ namespace CXX NarrowString path_str; try { - path_str = path.string (); + path_str = path.posix_string (); } catch (SemanticGraph::InvalidPath const&) { - path_str = path.native_file_string (); + path_str = path.string (); } String inc_path; |