Skip to content

Commit 13517e1

Browse files
pass const pointer by value
Signed-off-by: Stevedan Omodolor <[email protected]>
1 parent 113f5f1 commit 13517e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_smac_planner/include/nav2_smac_planner/goal_manager.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class GoalManager
7676
* @brief Adds goal to the goal vector
7777
*@param goal Reference to the NodePtr
7878
*/
79-
void addGoal(NodePtr goal)
79+
void addGoal(NodePtr & goal)
8080
{
8181
_goals_state.push_back({goal, true});
8282
}

0 commit comments

Comments
 (0)