Skip to content

Commit 6b56cc6

Browse files
author
Gaël Écorchard
committed
Statisfy clang-format
1 parent fecfc32 commit 6b56cc6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/bt_factory.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ void BehaviorTreeFactory::registerFromROSPlugins()
257257
}
258258
#endif
259259

260-
std::string BehaviorTreeFactory::registerBehaviorTreeFromFile(
261-
const std::filesystem::path& filename)
260+
std::string
261+
BehaviorTreeFactory::registerBehaviorTreeFromFile(const std::filesystem::path& filename)
262262
{
263263
return _p->parser->loadFromFile(filename);
264264
}

src/xml_parsing.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ XMLParser& XMLParser::operator=(XMLParser&& other) noexcept
156156
XMLParser::~XMLParser()
157157
{}
158158

159-
std::string XMLParser::loadFromFile(const std::filesystem::path& filepath, bool add_includes)
159+
std::string XMLParser::loadFromFile(const std::filesystem::path& filepath,
160+
bool add_includes)
160161
{
161162
_p->opened_documents.emplace_back(new XMLDocument());
162163

@@ -351,7 +352,7 @@ std::string XMLParser::PImpl::loadDocImpl(XMLDocument* doc, bool add_includes)
351352

352353
// Get the name of the tree to run (either explicit or single tree).
353354
std::string main_tree_to_execute;
354-
if (const auto main_tree_attribute = xml_root->Attribute("main_tree_to_execute"))
355+
if(const auto main_tree_attribute = xml_root->Attribute("main_tree_to_execute"))
355356
{
356357
main_tree_to_execute = main_tree_attribute;
357358
}

0 commit comments

Comments
 (0)