mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
copy string, don't get reference from boost::filesystem::path
This commit is contained in:
parent
1f32c4c9d7
commit
1829093fc9
@ -215,9 +215,9 @@ void map_parser::parse_map( Map & map, ptree const & pt, std::string const& base
|
||||
boost::filesystem::path xml_path(filename_);
|
||||
// TODO - should we make this absolute?
|
||||
#if (BOOST_FILESYSTEM_VERSION == 3)
|
||||
std::string const& base = xml_path.parent_path().string();
|
||||
std::string base = xml_path.parent_path().string();
|
||||
#else // v2
|
||||
std::string const& base = xml_path.branch_path().string();
|
||||
std::string base = xml_path.branch_path().string();
|
||||
#endif
|
||||
|
||||
map.set_base_path( base );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user