Skip to content
Snippets Groups Projects
Commit f09b7228 authored by mkroehnert's avatar mkroehnert
Browse files

CollisionModel: simplify ::toXML()

git-svn-id: http://svn.code.sf.net/p/simox/code/trunk@552 042f3d55-54a8-47e9-b7fb-15903f145c44
parent eb2c9bfa
No related branches found
No related tags found
No related merge requests found
......@@ -193,10 +193,12 @@ std::string CollisionModel::toXML(const std::string &basePath, const std::string
if (!filename.empty())
{
boost::filesystem::path localPath(basePath);
boost::filesystem::path fn(filename);
boost::filesystem::path completeFile = boost::filesystem::operator/(localPath,fn);
ss << pre << t << "<File type='" << fileType << "'>" << completeFile.string() << "</File>\n";
namespace fs = boost::filesystem;
fs::path completeFile = fs::path(basePath) / fs::path(filename);
ss << pre << t
<< "<File type='" << fileType << "'>"
<< completeFile.string()
<< "</File>\n";
}
ss << pre << "</CollisionModel>\n";
return ss.str();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment