Closed Bug 947336 Opened 11 years ago Closed 10 years ago

Use more smart pointers in XPCWrappedJS

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(3 files)

      No description provided.
With this, the get forget stuff in SetAggregatedNativeObject may be simplifiable.
This is fairly straightforward.  The only question is what to do with mRoot. This is an owning pointer only when it isn't |this|.  I could change it to be |null| instead of |this|, and make it always owning, and add a half dozen null-checks, but maybe I'll just document the ownership of mRoot instead.
Assignee: nobody → continuation
Attachment #8351194 - Flags: review?(bobbyholley+bmo) → review+
Attachment #8351195 - Flags: review?(bobbyholley+bmo) → review+
Attachment #8351196 - Flags: review?(bobbyholley+bmo) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: