Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krusader
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Utilities
Krusader
Commits
8b56d885
Commit
8b56d885
authored
Dec 07, 2020
by
Alexander Lohnau
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use std::any_of instead of for loop
parent
1bac9319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
krusader/JobMan/jobman.cpp
krusader/JobMan/jobman.cpp
+1
-5
No files found.
krusader/JobMan/jobman.cpp
View file @
8b56d885
...
...
@@ -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
();});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment