@@ -523,7 +523,7 @@ TreeNode::Ptr XMLParser::Pimpl::createNodeFromXML(const XMLElement* element,
523
523
for (const XMLAttribute* att = element->FirstAttribute (); att; att = att->Next ())
524
524
{
525
525
const std::string attribute_name = att->Name ();
526
- if (ReservedPortNames. count (attribute_name) == 0 )
526
+ if (! IsReservedPortname (attribute_name))
527
527
{
528
528
port_remap[attribute_name] = att->Value ();
529
529
}
@@ -699,7 +699,7 @@ void BT::XMLParser::Pimpl::recursivelyCreateTree(const std::string& tree_ID,
699
699
for (const XMLAttribute* attr = element->FirstAttribute (); attr != nullptr ;
700
700
attr = attr->Next ())
701
701
{
702
- if (ReservedPortNames. count (attr->Name ()) == 0 )
702
+ if (! IsReservedPortname (attr->Name ()))
703
703
{
704
704
new_bb->addSubtreeRemapping (attr->Name (), attr->Value ());
705
705
}
@@ -720,7 +720,7 @@ void BT::XMLParser::Pimpl::recursivelyCreateTree(const std::string& tree_ID,
720
720
const char * attr_name = attr->Name ();
721
721
const char * attr_value = attr->Value ();
722
722
723
- if (ReservedPortNames. count (attr->Name ()) != 0 )
723
+ if (IsReservedPortname (attr->Name ()))
724
724
{
725
725
continue ;
726
726
}
@@ -779,7 +779,7 @@ void XMLParser::Pimpl::getPortsRecursively(const XMLElement* element,
779
779
{
780
780
const char * attr_name = attr->Name ();
781
781
const char * attr_value = attr->Value ();
782
- if (ReservedPortNames. count (attr_name) == 0 &&
782
+ if (! IsReservedPortname (attr_name) &&
783
783
TreeNode::isBlackboardPointer (attr_value))
784
784
{
785
785
auto port_name = TreeNode::stripBlackboardPointer (attr_value);
0 commit comments