WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
121453
Replace more uses of PassOwnPtr with OwnPtr in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=121453
Summary
Replace more uses of PassOwnPtr with OwnPtr in WebKit2
Anders Carlsson
Reported
2013-09-16 14:31:34 PDT
Replace more uses of PassOwnPtr with OwnPtr in WebKit2
Attachments
Patch
(17.84 KB, patch)
2013-09-16 14:32 PDT
,
Anders Carlsson
sam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2013-09-16 14:32:50 PDT
Created
attachment 211833
[details]
Patch
Darin Adler
Comment 2
2013-09-16 14:52:38 PDT
Comment on
attachment 211833
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=211833&action=review
> Source/WebKit2/Platform/CoreIPC/Connection.cpp:100 > WTF_MAKE_NONCOPYABLE(SecondaryThreadPendingSyncReply);
I think that having an OwnPtr will automatically make the class noncopyable, so you could just omit this now.
> Source/WebKit2/Platform/CoreIPC/Connection.cpp:102 > - SecondaryThreadPendingSyncReply() : replyDecoder(0) { } > + SecondaryThreadPendingSyncReply() { }
Should just omit this entirely and let the compiler generate it.
> Source/WebKit2/Platform/CoreIPC/Connection.cpp:640 > + const auto it = m_workQueueMessageReceivers.find(message->messageReceiverName());
Why const?
> Source/WebKit2/Platform/CoreIPC/Connection.cpp:656 > + auto it = m_waitForMessageMap.find(std::make_pair(std::make_pair(message->messageReceiverName(), message->messageName()), message->destinationID()));
You didn’t add const here, so why did you add it above?
Anders Carlsson
Comment 3
2013-09-16 14:58:01 PDT
Comment on
attachment 211833
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=211833&action=review
>> Source/WebKit2/Platform/CoreIPC/Connection.cpp:102 >> + SecondaryThreadPendingSyncReply() { } > > Should just omit this entirely and let the compiler generate it.
I tried doing that but it wouldn’t work due to the WTF_MAKE_NONCOPYABLE. I’ve removed both now.
>> Source/WebKit2/Platform/CoreIPC/Connection.cpp:640 >> + const auto it = m_workQueueMessageReceivers.find(message->messageReceiverName()); > > Why const?
No good reason, I’ll remove it.
Anders Carlsson
Comment 4
2013-09-16 15:10:55 PDT
Committed
r155905
: <
http://trac.webkit.org/changeset/155905
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug