| Summary: | Factor repeated CFRunLoopObserver code out | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||
| Component: | Platform | Assignee: | Tim Horton <thorton> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | andersca, commit-queue, mitz, sam, simon.fraser | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Tim Horton
2014-06-10 12:44:10 PDT
Created attachment 232805 [details]
patch
I'm going to add another use of this soon, that's why I wanted to do this now. Attachment 232805 [details] did not pass style-queue:
ERROR: Source/WebCore/platform/cf/RunLoopObserver.h:41: The parameter name "callback" adds no information, so it should be removed. [readability/parameter_name] [5]
Total errors found: 1 in 12 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 232805 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=232805&action=review > Source/WebCore/platform/cf/RunLoopObserver.h:39 > + typedef std::function<void ()> RunLoopObserverCallback; Maybe the callback should take a RunLoopObserver&? (In reply to comment #4) > Maybe the callback should take a RunLoopObserver&? No need - you can just capture RunLoopObserver. |