[time] fix clang-tidy (#9292)

This commit is contained in:
tomaszduda23 2025-07-02 16:02:56 +02:00 committed by GitHub
parent 9b3ece4caf
commit 60eac6ea07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ class RealTimeClock : public PollingComponent {
/// Get the current time as the UTC epoch since January 1st 1970.
time_t timestamp_now() { return ::time(nullptr); }
void add_on_time_sync_callback(std::function<void()> callback) {
void add_on_time_sync_callback(std::function<void()> &&callback) {
this->time_sync_callback_.add(std::move(callback));
};