fixing cppcheck

pull/74/head
Peter Buchegger 2021-02-10 23:35:17 +01:00
rodzic 8cf0c67683
commit 54a1e5bac7
1 zmienionych plików z 3 dodań i 7 usunięć

Wyświetl plik

@ -90,12 +90,8 @@ void StatusFrame::drawStatusPage(Bitmap & bitmap)
bool StatusFrame::isPrio() const bool StatusFrame::isPrio() const
{ {
for(std::shared_ptr<Task> task : _tasks) return std::any_of(_tasks.begin(), _tasks.end(), [](std::shared_ptr<Task> task)
{ {
if(task->getState() != Okay) return task->getState() != Okay;
{ });
return true;
}
}
return false;
} }