From 21f176c39065442f93f5f64609401eeabe521dff Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Tue, 25 Jan 2022 13:06:57 -0600 Subject: [PATCH] Remove const from SetX functions Signed-off-by: Michael Carroll --- events/include/ignition/common/MouseEvent.hh | 8 ++++---- events/src/MouseEvent.cc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/events/include/ignition/common/MouseEvent.hh b/events/include/ignition/common/MouseEvent.hh index c8d4e9cd6..b76826e0f 100644 --- a/events/include/ignition/common/MouseEvent.hh +++ b/events/include/ignition/common/MouseEvent.hh @@ -154,7 +154,7 @@ namespace ignition /// \brief Set the event type. /// \param[in] _type The EventType. - public: void SetType(MouseEvent::EventType _type) const; + public: void SetType(MouseEvent::EventType _type); /// \brief Get the button which caused this event. /// \return The button which caused this event. @@ -162,7 +162,7 @@ namespace ignition /// \brief Set the button which caused the event. /// \param[in] _button The button which caused this event. - public: void SetButton(MouseEvent::MouseButton _button) const; + public: void SetButton(MouseEvent::MouseButton _button); /// \brief Get the state of the buttons when the event was generated. /// \return The state of the buttons, which can be a bitwise @@ -180,7 +180,7 @@ namespace ignition /// \brief Set the shift key press flag. /// \param[in] _shift The shift key press flag. - public: void SetShift(bool _shift) const; + public: void SetShift(bool _shift); /// \brief Get the alt key press flag. /// \return True if the alt key is pressed. @@ -196,7 +196,7 @@ namespace ignition /// \brief Set the control key press flag. /// \param[in] _control The control key flag. - public: void SetControl(bool _control) const; + public: void SetControl(bool _control); /// \brief Assignment operator /// \param[in] _other Other mouse event diff --git a/events/src/MouseEvent.cc b/events/src/MouseEvent.cc index d30369e86..4d9628401 100644 --- a/events/src/MouseEvent.cc +++ b/events/src/MouseEvent.cc @@ -190,7 +190,7 @@ MouseEvent::EventType MouseEvent::Type() const } ///////////////////////////////////////////////// -void MouseEvent::SetType(MouseEvent::EventType _type) const +void MouseEvent::SetType(MouseEvent::EventType _type) { this->dataPtr->type = _type; } @@ -202,7 +202,7 @@ MouseEvent::MouseButton MouseEvent::Button() const } ///////////////////////////////////////////////// -void MouseEvent::SetButton(MouseEvent::MouseButton _button) const +void MouseEvent::SetButton(MouseEvent::MouseButton _button) { this->dataPtr->button = _button; } @@ -226,7 +226,7 @@ bool MouseEvent::Shift() const } ///////////////////////////////////////////////// -void MouseEvent::SetShift(bool _shift) const +void MouseEvent::SetShift(bool _shift) { this->dataPtr->shift = _shift; } @@ -250,7 +250,7 @@ bool MouseEvent::Control() const } ///////////////////////////////////////////////// -void MouseEvent::SetControl(bool _control) const +void MouseEvent::SetControl(bool _control) { this->dataPtr->control = _control; }