Skip to content

Commit

Permalink
Make C++ method const
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebeaulac authored Oct 16, 2024
1 parent 4ce1e2e commit 52744b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/cpp/Timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool Timer::AdvanceIfElapsed(units::second_t period) {
}
}

bool Timer::IsRunning() {
bool Timer::IsRunning() const {
return m_running;
}

Expand Down
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/include/frc/Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Timer {
*
* @return true if running.
*/
bool IsRunning();
bool IsRunning() const;

/**
* Return the FPGA system clock time in seconds.
Expand Down

0 comments on commit 52744b2

Please sign in to comment.