Commit 8b6ac572 authored by weinig@apple.com's avatar weinig@apple.com
Browse files

2011-05-11 Sam Weinig <sam@webkit.org>

        Reviewed by Gavin Barraclough.

        WebKit2 doesn't build on Mac with strict PassOwnPtr
        https://bugs.webkit.org/show_bug.cgi?id=60655

        * Platform/CoreIPC/HandleMessage.h:
        (CoreIPC::handleMessageDelayed):
        Add explicit adoptPtr to indicate that the constructor is taking ownership.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent fd2014cc
2011-05-11 Sam Weinig <sam@webkit.org>
Reviewed by Gavin Barraclough.
WebKit2 doesn't build on Mac with strict PassOwnPtr
https://bugs.webkit.org/show_bug.cgi?id=60655
* Platform/CoreIPC/HandleMessage.h:
(CoreIPC::handleMessageDelayed):
Add explicit adoptPtr to indicate that the constructor is taking ownership.
2011-05-11 Jessie Berlin <jberlin@apple.com>
 
Reviewed by Steve Falkenburg.
......
......@@ -312,7 +312,7 @@ void handleMessageDelayed(Connection* connection, ArgumentDecoder* argumentDecod
if (!argumentDecoder->decode(arguments))
return;
RefPtr<typename T::DelayedReply> delayedReply = adoptRef(new typename T::DelayedReply(connection, replyEncoder));
RefPtr<typename T::DelayedReply> delayedReply = adoptRef(new typename T::DelayedReply(connection, adoptPtr(replyEncoder)));
callMemberFunction(arguments, delayedReply.release(), object, function);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment