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
PowerDevil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
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
Plasma
PowerDevil
Commits
d492dc57
Commit
d492dc57
authored
Nov 15, 2017
by
Jan Kundrát
Committed by
David Edmundson
Nov 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer an algorithm over an explicit for loop
Differential Revision:
https://phabricator.kde.org/D2660
parent
11cd37ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
daemon/powerdevilcore.cpp
daemon/powerdevilcore.cpp
+4
-5
No files found.
daemon/powerdevilcore.cpp
View file @
d492dc57
...
...
@@ -828,11 +828,10 @@ int Core::currentChargePercent() const
void
Core
::
onResumingFromIdle
()
{
// Wake up the actions in which an idle action was triggered
auto
i
=
m_pendingResumeFromIdleActions
.
begin
();
while
(
i
!=
m_pendingResumeFromIdleActions
.
end
())
{
(
*
i
)
->
onWakeupFromIdle
();
i
=
m_pendingResumeFromIdleActions
.
erase
(
i
);
}
std
::
for_each
(
m_pendingResumeFromIdleActions
.
cbegin
(),
m_pendingResumeFromIdleActions
.
cend
(),
std
::
mem_fn
(
&
PowerDevil
::
Action
::
onWakeupFromIdle
));
m_pendingResumeFromIdleActions
.
clear
();
}
void
Core
::
onNotificationTimeout
()
...
...
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