Skip to content

Commit

Permalink
Remove const from SetX functions
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Feb 10, 2022
1 parent 0ec3bf1 commit 74edd4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions events/include/ignition/common/MouseEvent.hh
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ 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.
public: MouseEvent::MouseButton Button() const;

/// \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
Expand All @@ -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.
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions events/src/MouseEvent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -226,7 +226,7 @@ bool MouseEvent::Shift() const
}

/////////////////////////////////////////////////
void MouseEvent::SetShift(bool _shift) const
void MouseEvent::SetShift(bool _shift)
{
this->dataPtr->shift = _shift;
}
Expand All @@ -250,7 +250,7 @@ bool MouseEvent::Control() const
}

/////////////////////////////////////////////////
void MouseEvent::SetControl(bool _control) const
void MouseEvent::SetControl(bool _control)
{
this->dataPtr->control = _control;
}
Expand Down

0 comments on commit 74edd4f

Please sign in to comment.