1
0
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:
Adrian Freund
2025-07-06 00:00:39 +02:00
committed by GitHub
parent 4e9e48e2e7
commit b0f8922056
2 changed files with 10 additions and 10 deletions

View File

@@ -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