Commit 8b56d885 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Use std::any_of instead of for loop

parent 1bac9319
......@@ -451,9 +451,5 @@ void JobMan::updateUI()
bool JobMan::jobsAreRunning()
{
for (KrJob *job: m_jobs)
if (job->isRunning())
return true;
return false;
return std::any_of(m_jobs.cbegin(), m_jobs.cend(), [](KrJob *job) {return job->isRunning();});
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment