Skip to content

Commit 97c3f6a

Browse files
Update switch_node.h
1 parent 0a3393c commit 97c3f6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/behaviortree_cpp/controls/switch_node.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ inline void SwitchNode<NUM_CASES>::halt()
8989
template <size_t NUM_CASES>
9090
inline PortsList SwitchNode<NUM_CASES>::providedPorts()
9191
{
92-
static PortsList ports = []() {
92+
static PortsList provided_ports = []() {
9393
PortsList ports;
9494
ports.insert(BT::InputPort<std::string>("variable"));
9595
for(unsigned i = 1; i <= NUM_CASES; i++)
@@ -100,7 +100,7 @@ inline PortsList SwitchNode<NUM_CASES>::providedPorts()
100100
return ports;
101101
}();
102102

103-
return ports;
103+
return provided_ports;
104104
}
105105

106106
template <size_t NUM_CASES>

0 commit comments

Comments
 (0)