QTimerInfo: fix lambda name
We are trying to find the first time in the list that has not expired. Drive-by change: fix a narrowing conversion warning Change-Id: I9e5f95b0f9d767f1fda9061c928e3182f4be6a85 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
dc44323586
commit
dc6578a373
|
|
@ -530,9 +530,10 @@ int QTimerInfoList::activateTimers()
|
|||
repairTimersIfNeeded();
|
||||
|
||||
// Find out how many timer have expired
|
||||
auto isExpired = [&now](const QTimerInfo *t) { return now < t->timeout; };
|
||||
auto it = std::find_if(cbegin(), cend(), isExpired);
|
||||
int maxCount = it - cbegin();
|
||||
auto stillActive = [&now](const QTimerInfo *t) { return now < t->timeout; };
|
||||
// Find first one still active (list is sorted by timeout)
|
||||
auto it = std::find_if(cbegin(), cend(), stillActive);
|
||||
auto maxCount = it - cbegin();
|
||||
|
||||
int n_act = 0;
|
||||
//fire the timers.
|
||||
|
|
|
|||
Loading…
Reference in New Issue