File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
include/ignition/gazebo/detail Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class IGNITION_GAZEBO_VISIBLE View : public BaseView
77
77
// / \param[_in] _entity The entity
78
78
// / \return The entity and its component data. Mutable pointers to the
79
79
// / component data are returned.
80
- public: const ComponentData &EntityComponentData (const Entity _entity);
80
+ public: const ComponentData &EntityComponentData (const Entity _entity) const ;
81
81
82
82
// / \brief Add an entity with its component data to the view. It is assumed
83
83
// / that the entity to be added does not already exist in the view.
Original file line number Diff line number Diff line change @@ -40,12 +40,11 @@ const std::vector<const components::BaseComponent *>
40
40
41
41
// ////////////////////////////////////////////////
42
42
const std::vector<components::BaseComponent *> &View::EntityComponentData (
43
- const Entity _entity)
43
+ const Entity _entity) const
44
44
{
45
45
return this ->validData .at (_entity);
46
46
}
47
47
48
-
49
48
// ////////////////////////////////////////////////
50
49
bool View::HasCachedComponentData (const Entity _entity) const
51
50
{
You can’t perform that action at this time.
0 commit comments