Skip to content

Commit

Permalink
Add missing const
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 7, 2023
1 parent 87da328 commit 52f498d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/controllers/abstract_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class AbstractController : public PhaseHandler, public enable_shared_from_this<A
void IncrementNext() { ++ctrl.next; }
int GetMessage() const { return ctrl.message; }
void SetMessage(int m) { ctrl.message = m; }
span <const int> GetCmd() { return ctrl.cmd; }
span <const int> GetCmd() const { return ctrl.cmd; }
// TODO Try to make this method protected. It is currently public for usage by the unit tests.
void SetCmdByte(int index, int value) { ctrl.cmd[index] = value; }
int GetCmd(int index) const { return ctrl.cmd[index]; }
Expand Down

0 comments on commit 52f498d

Please sign in to comment.