Skip to content

Commit ae9f5fa

Browse files
committed
fix comilation
1 parent d414772 commit ae9f5fa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/xml_parsing.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,14 @@ XMLParser::XMLParser(const BehaviorTreeFactory& factory) : _p(new PImpl(factory)
9999
XMLParser::~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
}

0 commit comments

Comments
 (0)