Closed
Bug 1592496
Opened 6 years ago
Closed 6 years ago
Add move constructor&assignment to nsMainThreadPtrHandle
Categories
(Core :: XPCOM, task)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla72
| Tracking | Status | |
|---|---|---|
| firefox72 | --- | fixed |
People
(Reporter: mozbugz, Assigned: mozbugz)
Details
Attachments
(2 files)
Add move constructor&assignment to nsMainThreadPtrHandle to avoid a Release+AddRef when moving the RefPtr member.
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Small changes:
- Ordered #includes.
- Fixed some comments (obsolete remarks, or typos).
- Set
nsMainThreadPtrHolder::mRawPtrfrom constructor initializers. - Modernized
nsMainThreadPtrHoldercopy-prevention. - Made
nsMainThreadPtrHandle::get()const(consistent with others). - Moved nsMainThreadPtrHandle private member to the end.
- Removed now-unused
mozilla::PtrHolderandmozilla::PtrHandlealiases.
Depends on D51055
Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/535dce0633af
Add move constructor and assignment to nsMainThreadPtrHandle - r=froydnj
https://hg.mozilla.org/integration/autoland/rev/3dcba4d6c816
nsProxyRelease.h clean-up - r=froydnj
Comment 4•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/535dce0633af
https://hg.mozilla.org/mozilla-central/rev/3dcba4d6c816
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox72:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Comment 5•6 years ago
|
||
| bugherder landing | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•