copy string, don't get reference from boost::filesystem::path
This commit is contained in:
parent
1f32c4c9d7
commit
1829093fc9
1 changed files with 2 additions and 2 deletions
|
@ -215,9 +215,9 @@ void map_parser::parse_map( Map & map, ptree const & pt, std::string const& base
|
||||||
boost::filesystem::path xml_path(filename_);
|
boost::filesystem::path xml_path(filename_);
|
||||||
// TODO - should we make this absolute?
|
// TODO - should we make this absolute?
|
||||||
#if (BOOST_FILESYSTEM_VERSION == 3)
|
#if (BOOST_FILESYSTEM_VERSION == 3)
|
||||||
std::string const& base = xml_path.parent_path().string();
|
std::string base = xml_path.parent_path().string();
|
||||||
#else // v2
|
#else // v2
|
||||||
std::string const& base = xml_path.branch_path().string();
|
std::string base = xml_path.branch_path().string();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
map.set_base_path( base );
|
map.set_base_path( base );
|
||||||
|
|
Loading…
Reference in a new issue