Browse Source

StateMachine: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 4 years ago committed by Don Gagne
parent
commit
3134a4b4f3
  1. 2
      src/Vehicle/StateMachine.cc
  2. 2
      src/Vehicle/StateMachine.h

2
src/Vehicle/StateMachine.cc

@ -51,7 +51,7 @@ void StateMachine::statesCompleted(void) const @@ -51,7 +51,7 @@ void StateMachine::statesCompleted(void) const
}
StateMachine::StateFn StateMachine::currentState(void)
StateMachine::StateFn StateMachine::currentState(void) const
{
if (_active) {
return rgStates()[_stateIndex];

2
src/Vehicle/StateMachine.h

@ -29,7 +29,7 @@ public: @@ -29,7 +29,7 @@ public:
/// Move the state machine to the specified state and call the state function
void move(StateFn stateFn);
StateFn currentState(void);
StateFn currentState(void) const;
/// @return The number of states in the rgStates array
virtual int stateCount(void) const = 0;

Loading…
Cancel
Save