event/TimerList: use FineTimerEvent::GetDue()

Avoid accessing the private field from an inner class of the friend
class, because some compilers apparently don't like it (Apple clang).
This commit is contained in:
Max Kellermann 2024-07-23 13:37:20 +02:00 committed by Max Kellermann
parent b4374ddb35
commit 4c4a3c8664
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
constexpr Event::TimePoint constexpr Event::TimePoint
TimerList::GetDue::operator()(const FineTimerEvent &timer) const noexcept TimerList::GetDue::operator()(const FineTimerEvent &timer) const noexcept
{ {
return timer.due; return timer.GetDue();
} }
TimerList::TimerList() = default; TimerList::TimerList() = default;