Bug 127397

Summary: [EFL][WK2] Use std::function in the rest of EFL's WorkQueue implementation
Product: WebKit Reporter: Jinwoo Song <jinwoo7.song>
Component: WebKit EFLAssignee: Jinwoo Song <jinwoo7.song>
Status: RESOLVED FIXED    
Severity: Normal CC: bunhere, cdumez, commit-queue, gyuyoung.kim, lucas.de.marchi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Jinwoo Song 2014-01-21 19:27:28 PST
Move to using std::function and move semantics in WorkQueue::registerSocketEventHandler
and DispatchQueue::setSocketEventHandler.
Comment 1 Jinwoo Song 2014-01-21 20:52:14 PST
Created attachment 221825 [details]
Patch
Comment 2 WebKit Commit Bot 2014-01-21 20:54:34 PST
Attachment 221825 [details] did not pass style-queue:


ERROR: Source/WebKit2/Platform/efl/DispatchQueueEfl.cpp:118:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/efl/DispatchQueueEfl.h:45:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/efl/DispatchQueueEfl.h:70:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/efl/WorkQueueEfl.cpp:37:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/WorkQueue.h:69:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 5 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Anders Carlsson 2014-01-21 21:41:03 PST
Comment on attachment 221825 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=221825&action=review

> Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp:402
> +        [=] {

I like being explicit about what variables are captured, so I'd just use [protector] here.
Comment 4 Jinwoo Song 2014-01-22 00:26:47 PST
Created attachment 221835 [details]
Patch

Applied andersca's comment.
Comment 5 WebKit Commit Bot 2014-01-22 00:28:33 PST
Attachment 221835 [details] did not pass style-queue:


ERROR: Source/WebKit2/Platform/efl/DispatchQueueEfl.cpp:118:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/efl/DispatchQueueEfl.h:45:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/efl/DispatchQueueEfl.h:70:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/efl/WorkQueueEfl.cpp:37:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/WorkQueue.h:69:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 5 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 WebKit Commit Bot 2014-01-22 00:56:09 PST
Comment on attachment 221835 [details]
Patch

Clearing flags on attachment: 221835

Committed r162511: <http://trac.webkit.org/changeset/162511>
Comment 7 WebKit Commit Bot 2014-01-22 00:56:11 PST
All reviewed patches have been landed.  Closing bug.