Bug 127273

Summary: [GTK][WK2] Move the rest of GTK's WorkQueue implementation to std::function
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch andersca: review+

Zan Dobersek
Reported 2014-01-20 01:22:27 PST
[GTK][WK2] Move the rest of GTK's WorkQueue implementation to std::function
Attachments
Patch (5.09 KB, patch)
2014-01-20 01:34 PST, Zan Dobersek
andersca: review+
Zan Dobersek
Comment 1 2014-01-20 01:34:40 PST
WebKit Commit Bot
Comment 2 2014-01-20 01:35:41 PST
Attachment 221634 [details] did not pass style-queue: ERROR: Source/WebKit2/Platform/WorkQueue.h:66: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:72: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:73: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:110: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:162: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:170: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 6 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 3 2014-01-20 11:57:39 PST
Comment on attachment 221634 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=221634&action=review > Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:73 > + : EventSource(std::forward<std::function<void ()>>(function), workQueue) This should just use std::move. > Source/WebKit2/Platform/gtk/WorkQueueGtk.cpp:170 > - SocketEventSource* eventSource = new SocketEventSource(function, this, cancellable.get(), closeFunction); > + SocketEventSource* eventSource = new SocketEventSource(std::forward<std::function<void ()>>(function), this, > + cancellable.get(), std::forward<std::function<void ()>>(closeFunction)); This should use std::move instead of std::forward.
Zan Dobersek
Comment 4 2014-01-20 13:13:08 PST
Note You need to log in before you can comment on or make changes to this bug.