Bug 127397 - [EFL][WK2] Use std::function in the rest of EFL's WorkQueue implementation
Summary: [EFL][WK2] Use std::function in the rest of EFL's WorkQueue implementation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jinwoo Song
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 19:27 PST by Jinwoo Song
Modified: 2014-01-22 00:56 PST (History)
5 users (show)

See Also:


Attachments
Patch (5.22 KB, patch)
2014-01-21 20:52 PST, Jinwoo Song
no flags Details | Formatted Diff | Diff
Patch (5.16 KB, patch)
2014-01-22 00:26 PST, Jinwoo Song
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.