mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilibc] Const-qualify Watchdog comparison operator (#2767)
This commit is contained in:
@@ -220,7 +220,7 @@ void Watchdog::SuppressTimeoutMessage(bool suppress) {
|
||||
m_suppressTimeoutMessage = suppress;
|
||||
}
|
||||
|
||||
bool Watchdog::operator>(const Watchdog& rhs) {
|
||||
bool Watchdog::operator>(const Watchdog& rhs) const {
|
||||
return m_expirationTime > rhs.m_expirationTime;
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ class Watchdog {
|
||||
class Impl;
|
||||
Impl* m_impl;
|
||||
|
||||
bool operator>(const Watchdog& rhs);
|
||||
bool operator>(const Watchdog& rhs) const;
|
||||
|
||||
static Impl* GetImpl();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user