From 52744b243d0dd2cbecd9367c954b3fcc1cdf01f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Beaulac?= Date: Wed, 16 Oct 2024 15:37:59 -0400 Subject: [PATCH] Make C++ method const --- wpilibc/src/main/native/cpp/Timer.cpp | 2 +- wpilibc/src/main/native/include/frc/Timer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wpilibc/src/main/native/cpp/Timer.cpp b/wpilibc/src/main/native/cpp/Timer.cpp index fab41297bdd..02dd9bad6ab 100644 --- a/wpilibc/src/main/native/cpp/Timer.cpp +++ b/wpilibc/src/main/native/cpp/Timer.cpp @@ -84,7 +84,7 @@ bool Timer::AdvanceIfElapsed(units::second_t period) { } } -bool Timer::IsRunning() { +bool Timer::IsRunning() const { return m_running; } diff --git a/wpilibc/src/main/native/include/frc/Timer.h b/wpilibc/src/main/native/include/frc/Timer.h index b416de4c6b0..37fe5e0c646 100644 --- a/wpilibc/src/main/native/include/frc/Timer.h +++ b/wpilibc/src/main/native/include/frc/Timer.h @@ -116,7 +116,7 @@ class Timer { * * @return true if running. */ - bool IsRunning(); + bool IsRunning() const; /** * Return the FPGA system clock time in seconds.