Bug 127218 - Replace a couple of uses of WTF::Function with std::function
Summary: Replace a couple of uses of WTF::Function with std::function
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-18 07:30 PST by Anders Carlsson
Modified: 2014-01-18 14:56 PST (History)
5 users (show)

See Also:


Attachments
Patch (17.94 KB, patch)
2014-01-18 07:35 PST, Anders Carlsson
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2014-01-18 07:30:14 PST
Replace a couple of uses of WTF::Function with std::function
Comment 1 Anders Carlsson 2014-01-18 07:35:09 PST
Created attachment 221547 [details]
Patch
Comment 2 WebKit Commit Bot 2014-01-18 07:37:45 PST
Attachment 221547 [details] did not pass style-queue:


ERROR: Source/WebKit2/WebProcess/WebPage/DrawingArea.h:112:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.cpp:49:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.cpp:61:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.cpp:63:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.cpp:87:  More than one command on the same line  [whitespace/newline] [4]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.cpp:87:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.cpp:106:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/WebProcess/WebPage/DrawingArea.cpp:80:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Shared/ChildProcess.cpp:53:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WebKit2/Platform/WorkQueue.h:60:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/WorkQueue.h:61:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.h:49:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.h:53:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebCore/page/scrolling/ScrollingThread.h:81:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/mac/WorkQueueMac.cpp:29:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/mac/WorkQueueMac.cpp:38:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/mac/WorkQueueMac.cpp:41:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:87:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/IPC/mac/ConnectionMac.cpp:104:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/Platform/IPC/mac/ConnectionMac.cpp:107:  Missing space before {  [whitespace/braces] [5]
Total errors found: 20 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Andreas Kling 2014-01-18 14:51:02 PST
Comment on attachment 221547 [details]
Patch

r=me
Comment 4 Anders Carlsson 2014-01-18 14:56:04 PST
Committed r162276: <http://trac.webkit.org/changeset/162276>