File tree 1 file changed +3
-4
lines changed
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)
99
99
XMLParser::~XMLParser ()
100
100
{}
101
101
102
- void XMLParser::loadFromFile (const std::filesystem::path& filename , bool add_includes)
102
+ void XMLParser::loadFromFile (const std::filesystem::path& filepath , bool add_includes)
103
103
{
104
104
_p->opened_documents .emplace_back (new tinyxml2::XMLDocument ());
105
105
106
106
tinyxml2::XMLDocument* doc = _p->opened_documents .back ().get ();
107
- doc->LoadFile (filename .c_str ());
107
+ doc->LoadFile (filepath. string () .c_str ());
108
108
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 ());
111
110
112
111
_p->loadDocImpl (doc, add_includes);
113
112
}
You can’t perform that action at this time.
0 commit comments