File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -99,15 +99,14 @@ XMLParser::XMLParser(const BehaviorTreeFactory& factory) : _p(new PImpl(factory)
9999XMLParser::~XMLParser ()
100100{}
101101
102- void XMLParser::loadFromFile (const std::filesystem::path& filename , bool add_includes)
102+ void XMLParser::loadFromFile (const std::filesystem::path& filepath , bool add_includes)
103103{
104104 _p->opened_documents .emplace_back (new tinyxml2::XMLDocument ());
105105
106106 tinyxml2::XMLDocument* doc = _p->opened_documents .back ().get ();
107- doc->LoadFile (filename .c_str ());
107+ doc->LoadFile (filepath. string () .c_str ());
108108
109- std::filesystem::path file_path (filename);
110- _p->current_path = std::filesystem::absolute (file_path.parent_path ());
109+ _p->current_path = std::filesystem::absolute (filepath.parent_path ());
111110
112111 _p->loadDocImpl (doc, add_includes);
113112}
You can’t perform that action at this time.
0 commit comments