RESOLVED FIXED 145112
Purge PassRefPtr in WebCore/Modules
https://bugs.webkit.org/show_bug.cgi?id=145112
Summary Purge PassRefPtr in WebCore/Modules
Gyuyoung Kim
Reported 2015-05-17 17:42:53 PDT
SSIA
Attachments
Patch (84.82 KB, patch)
2015-05-17 17:44 PDT, Gyuyoung Kim
no flags
Patch (53.27 KB, patch)
2015-05-17 22:24 PDT, Gyuyoung Kim
no flags
Patch for landing (53.20 KB, patch)
2015-05-20 20:02 PDT, Gyuyoung Kim
no flags
Gyuyoung Kim
Comment 1 2015-05-17 17:44:11 PDT
Gyuyoung Kim
Comment 2 2015-05-17 22:24:48 PDT
Darin Adler
Comment 3 2015-05-20 08:51:55 PDT
Comment on attachment 253302 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=253302&action=review > Source/WebCore/Modules/geolocation/PositionOptions.h:36 > + static Ref<PositionOptions> create() { return adoptRef(*new PositionOptions()); } I like to omit the unneeded parentheses in cases like this. > Source/WebCore/Modules/mediastream/RTCDataChannel.h:51 > + static RefPtr<RTCDataChannel> create(ScriptExecutionContext*, RTCPeerConnectionHandler*, const String& , const Dictionary&, ExceptionCode&); Stray space after "const String&". Also, it makes no sense to omit the argument name for the string and dictionary; the types alone do not make it clear what these are! > Source/WebCore/Modules/websockets/WebSocket.cpp:159 > +RefPtr<WebSocket> WebSocket::create(ScriptExecutionContext& context) Should be Ref, not RefPtr. > Source/WebCore/Modules/websockets/WebSocket.h:57 > + static RefPtr<WebSocket> create(ScriptExecutionContext&); Should be Ref, not RefPtr.
Gyuyoung Kim
Comment 4 2015-05-20 20:02:04 PDT
Created attachment 253498 [details] Patch for landing
Gyuyoung Kim
Comment 5 2015-05-20 23:37:38 PDT
(In reply to comment #3) > Comment on attachment 253302 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=253302&action=review > > > Source/WebCore/Modules/geolocation/PositionOptions.h:36 > > + static Ref<PositionOptions> create() { return adoptRef(*new PositionOptions()); } > > I like to omit the unneeded parentheses in cases like this. > > > Source/WebCore/Modules/mediastream/RTCDataChannel.h:51 > > + static RefPtr<RTCDataChannel> create(ScriptExecutionContext*, RTCPeerConnectionHandler*, const String& , const Dictionary&, ExceptionCode&); > > Stray space after "const String&". Also, it makes no sense to omit the > argument name for the string and dictionary; the types alone do not make it > clear what these are! > > > Source/WebCore/Modules/websockets/WebSocket.cpp:159 > > +RefPtr<WebSocket> WebSocket::create(ScriptExecutionContext& context) > > Should be Ref, not RefPtr. > > > Source/WebCore/Modules/websockets/WebSocket.h:57 > > + static RefPtr<WebSocket> create(ScriptExecutionContext&); > > Should be Ref, not RefPtr. All fixed.
WebKit Commit Bot
Comment 6 2015-05-21 00:27:18 PDT
Comment on attachment 253498 [details] Patch for landing Clearing flags on attachment: 253498 Committed r184709: <http://trac.webkit.org/changeset/184709>
WebKit Commit Bot
Comment 7 2015-05-21 00:27:22 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.