mirror of
https://github.com/esphome/esphome.git
synced 2025-09-18 11:12:20 +01:00
Mark ESPTime comparison operators as const (#9335)
This commit is contained in:
@@ -109,10 +109,10 @@ struct ESPTime {
|
||||
void increment_second();
|
||||
/// Increment this clock instance by one day.
|
||||
void increment_day();
|
||||
bool operator<(ESPTime other);
|
||||
bool operator<=(ESPTime other);
|
||||
bool operator==(ESPTime other);
|
||||
bool operator>=(ESPTime other);
|
||||
bool operator>(ESPTime other);
|
||||
bool operator<(const ESPTime &other) const;
|
||||
bool operator<=(const ESPTime &other) const;
|
||||
bool operator==(const ESPTime &other) const;
|
||||
bool operator>=(const ESPTime &other) const;
|
||||
bool operator>(const ESPTime &other) const;
|
||||
};
|
||||
} // namespace esphome
|
||||
|
Reference in New Issue
Block a user