Open Bug 1186012 Opened 9 years ago Updated 1 year ago

replace do_AddRef(new T(...)) uses with mozilla::MakeAndAddRef<T>(...)

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

People

(Reporter: froydnj, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

...and then we can probably remove do_AddRef. Better to have one thing than two.
If we combines do_AddRef with NS_New* functions, we probably cannot remove do_AddRef in favor of MakeAndAddRef. But I'm going to allow passing raw pointer to thread dispatch functions (and add a "deleted" function template to block passing smart pointers), and thus it is probably fine to remove do_AddRef then.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.