remove nsAutoPtr usage inside xpcom/
Categories
(Core :: XPCOM, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: froydnj, Assigned: ma.steiman)
References
Details
Attachments
(5 files)
Assignee | ||
Comment 1•9 years ago
|
||
![]() |
Reporter | |
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
![]() |
Reporter | |
Comment 5•9 years ago
|
||
![]() |
Reporter | |
Comment 6•9 years ago
|
||
Assignee | ||
Comment 7•9 years ago
|
||
![]() |
Reporter | |
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
![]() |
||
Comment 10•9 years ago
|
||
Comment 11•5 years ago
|
||
This removes various unused #include "nsAutoPtr.h"
in xpcom/
. Additionally
adds a few includes to the media stack.
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
This converts straightforward nsAutoPtr
usage over to UniquePtr
.
nsClassHashtable
is left alone for now as that will have a larger impact.
nsThread
is left alone for now as it has non-trivial ownership concepts.
Comment 14•5 years ago
|
||
This switches over one usage of nsAutoPtr
that was just used to scope an allocation, a stack variable is used instead. The shutdown contexts array is switched over to hold UniquePtr
s which required adding a helper to find elements in the array as UniquePtr
does not auto-convert to its pointer type.
Comment 15•5 years ago
|
||
Comment 16•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/77df306727e6
https://hg.mozilla.org/mozilla-central/rev/0a5024ff6c8f
https://hg.mozilla.org/mozilla-central/rev/7ac9f823fae4
https://hg.mozilla.org/mozilla-central/rev/0e8e08b054de
Description
•