We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3393c commit 97c3f6aCopy full SHA for 97c3f6a
include/behaviortree_cpp/controls/switch_node.h
@@ -89,7 +89,7 @@ inline void SwitchNode<NUM_CASES>::halt()
89
template <size_t NUM_CASES>
90
inline PortsList SwitchNode<NUM_CASES>::providedPorts()
91
{
92
- static PortsList ports = []() {
+ static PortsList provided_ports = []() {
93
PortsList ports;
94
ports.insert(BT::InputPort<std::string>("variable"));
95
for(unsigned i = 1; i <= NUM_CASES; i++)
@@ -100,7 +100,7 @@ inline PortsList SwitchNode<NUM_CASES>::providedPorts()
100
return ports;
101
}();
102
103
- return ports;
+ return provided_ports;
104
}
105
106
0 commit comments