Closed Bug 1167396 Opened 9 years ago Closed 9 years ago

Make ProtocolCloneContext::mContentParent a smart pointer

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: nika, Assigned: nika)

Details

Attachments

(1 file, 2 obsolete files)

Comment on attachment 8609015 [details] [diff] [review]
Make ProtocolCloneContext::mContentParent a smart pointer

Review of attachment 8609015 [details] [diff] [review]:
-----------------------------------------------------------------

This is probably not needed since ProtocolCloneContext should only be used on the stack I think. But it probably can't hurt.

::: ipc/glue/ProtocolUtils.cpp
@@ +25,5 @@
>  
>  namespace mozilla {
>  namespace ipc {
>  
> +ProtocolCloneContext::ProtocolCloneContext() : mContentParent(nullptr)

Nit: Smart pointers don't need to be initialized to null.
Removed the unnecessary initialization of mContentParent to nullptr
Attachment #8609015 - Attachment is obsolete: true
Attachment #8609397 - Flags: review?(bent.mozilla)
Comment on attachment 8609397 [details] [diff] [review]
Make ProtocolCloneContext::mContentParent a smart pointer

Review of attachment 8609397 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!

::: ipc/glue/ProtocolUtils.cpp
@@ +25,5 @@
>  
>  namespace mozilla {
>  namespace ipc {
>  
> +ProtocolCloneContext::ProtocolCloneContext() : mNeckoParent(nullptr)

Nit: Initializer list on its own line please, e.g.:

  ProtocolCloneContext::ProtocolCloneContext()
    : mNeckoParent(nullptr)
Attachment #8609397 - Flags: review?(bent.mozilla) → review+
Move initializer list to it's own line
Attachment #8609397 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: