Skip to content
Snippets Groups Projects
Commit 5dcedba9 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix shadowing of Entity::name

To fix build with -Werror=shadow
parent 9ad00d57
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,8 @@ class RosTfListener : public Entity {
public:
typedef internal::TransformListenerData TransformListenerData;
RosTfListener(const std::string& name)
: Entity(name)
RosTfListener(const std::string& _name)
: Entity(_name)
, buffer()
, listener(buffer, rosInit(), false)
{
......
......@@ -22,8 +22,8 @@ const std::string RosTime::docstring_(
" Signal \"time\" provides time as given by ros::time as\n"
" boost::posix_time::ptime type.\n");
RosTime::RosTime(const std::string& name)
: Entity(name), now_("RosTime(" + name + ")::output(boost::posix_time::ptime)::time") {
RosTime::RosTime(const std::string& _name)
: Entity(_name), now_("RosTime(" + _name + ")::output(boost::posix_time::ptime)::time") {
signalRegistration(now_);
now_.setConstant(rosTimeToPtime(ros::Time::now()));
now_.setFunction(boost::bind(&RosTime::update, this, _1, _2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment