From e9d0a05f75566cd8f2f99f691ca2332be1042d21 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sun, 4 Feb 2018 22:12:13 +0100 Subject: [PATCH] default arg in header --- core/include/moveit/task_constructor/stages/current_state.h | 2 +- core/src/stages/current_state.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/include/moveit/task_constructor/stages/current_state.h b/core/include/moveit/task_constructor/stages/current_state.h index b9554b47..3c3a4a0c 100644 --- a/core/include/moveit/task_constructor/stages/current_state.h +++ b/core/include/moveit/task_constructor/stages/current_state.h @@ -44,7 +44,7 @@ namespace moveit { namespace task_constructor { namespace stages { class CurrentState : public Generator { public: - CurrentState(std::string name); + CurrentState(const std::string& name = "current state"); void init(const planning_scene::PlanningSceneConstPtr& scene) override; bool canCompute() const override; diff --git a/core/src/stages/current_state.cpp b/core/src/stages/current_state.cpp index 336dc014..1a2828a7 100644 --- a/core/src/stages/current_state.cpp +++ b/core/src/stages/current_state.cpp @@ -39,7 +39,7 @@ namespace moveit { namespace task_constructor { namespace stages { -CurrentState::CurrentState(std::string name = "current state") +CurrentState::CurrentState(const std::string &name) : Generator(name) { ran_= false;