diff --git a/src/gui/plugins/modules/EntityContextMenu.cc b/src/gui/plugins/modules/EntityContextMenu.cc index c8c540e7bf..d43f6ba971 100644 --- a/src/gui/plugins/modules/EntityContextMenu.cc +++ b/src/gui/plugins/modules/EntityContextMenu.cc @@ -19,13 +19,13 @@ #include "EntityContextMenu.hh" #include -#include #include +#include #include #include -#include #include +#include #include #include @@ -86,7 +86,7 @@ namespace gz::sim /// \brief Name of world. public: std::string worldName; - /// \brief storing last follow target for look at. + /// \brief Storing last follow target for look at. public: std::string followTargetLookAt; /// \brief Flag used to disable look at when not following target. @@ -108,7 +108,6 @@ void EntityContextMenu::OnCurrentlyTrackedSub(const msgs::CameraTrack &_msg) _msg.track_mode() == gz::msgs::CameraTrack::FOLLOW_LOOK_AT || _msg.track_mode() == gz::msgs::CameraTrack::FOLLOW_FREE_LOOK) { - // gzmsg << "Currently following a target: Look At enabled."<< std::endl; this->dataPtr->followingTarget = true; this->FollowingTargetChanged(); } @@ -177,14 +176,13 @@ EntityContextMenu::EntityContextMenu() this->dataPtr->trackPub = this->dataPtr->node.Advertise(this->dataPtr->trackTopic); - } ///////////////////////////////////////////////// EntityContextMenu::~EntityContextMenu() = default; ///////////////////////////////////////////////// -void EntityContextMenu::SetFollowingTarget(const bool &_followingTarget) +void EntityContextMenu::SetFollowingTarget(bool &_followingTarget) { this->dataPtr->followingTarget = _followingTarget; this->FollowingTargetChanged(); diff --git a/src/gui/plugins/modules/EntityContextMenu.hh b/src/gui/plugins/modules/EntityContextMenu.hh index 45fd20148b..a59c271d43 100644 --- a/src/gui/plugins/modules/EntityContextMenu.hh +++ b/src/gui/plugins/modules/EntityContextMenu.hh @@ -73,7 +73,7 @@ namespace sim signals: void FollowingTargetChanged(); /// \brief Callback function to get data from the message - /// \param[in]_msg CameraTrack message + /// \param[in] _msg CameraTrack message public: void OnCurrentlyTrackedSub(const msgs::CameraTrack &_msg); /// \brief Callback when a context menu item is invoked