| Summary: | [WK2] Refine WebKit2 BatteryStatus code | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jinwoo Song <jinwoo7.song> | ||||||
| Component: | WebKit Misc. | Assignee: | Jinwoo Song <jinwoo7.song> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bunhere, cdumez, commit-queue, gyuyoung.kim, sergio | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Jinwoo Song
2014-03-21 02:16:01 PDT
Created attachment 227405 [details]
Patch
Comment on attachment 227405 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=227405&action=review > Source/WebKit2/WebProcess/Battery/WebBatteryManager.cpp:80 > + for (auto it = m_pageSet.begin(), end = m_pageSet.end(); it != end; ++it) { This can just use the range for syntax, for (auto* page : m_pageSet) > Source/WebKit2/WebProcess/Battery/WebBatteryManager.cpp:91 > + for (auto it = m_pageSet.begin(), end = m_pageSet.end(); it != end; ++it) { Ditto. Created attachment 227621 [details]
Patch
Applied Andersca's comments.
Comment on attachment 227621 [details] Patch Clearing flags on attachment: 227621 Committed r166148: <http://trac.webkit.org/changeset/166148> All reviewed patches have been landed. Closing bug. |