From a0db79aeb6bdf9deeeddea95c64e8c7b93526f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20=C3=89corchard?= Date: Thu, 22 Sep 2022 12:56:20 +0200 Subject: [PATCH] Adapt to API changes in BehaviorTree The change was introduced in 474f33b. --- bt_editor/XML_utilities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bt_editor/XML_utilities.cpp b/bt_editor/XML_utilities.cpp index f26f3464..a2fc556f 100644 --- a/bt_editor/XML_utilities.cpp +++ b/bt_editor/XML_utilities.cpp @@ -189,11 +189,11 @@ bool VerifyXML(QDomDocument &doc, error_messages.clear(); try { std::string xml_text = doc.toString().toStdString(); - std::set registered_nodes; + std::unordered_map registered_nodes; for(const auto& str: registered_ID) { - registered_nodes.insert( str.toStdString() ); + registered_nodes[ str.toStdString() ] = BT::NodeType::UNDEFINED; } BT::VerifyXML(xml_text, registered_nodes); // may throw