Closed Bug 1600618 Opened 6 years ago Closed 6 years ago

Provide more guidance on which smart pointer types to use

Categories

(Core :: Storage: IndexedDB, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: sg, Assigned: sg)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Add that nsCOMPtr<T> should be used iff T is an interface type.

Add that UniquePtr<T> should be preferred over nsAutoPtr<T> (cf. https://bugzilla.mozilla.org/show_bug.cgi?id=1600079#c1).

Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c247f0abed84 Provide more guidance on which smart pointer types to use. r=dom-workers-and-storage-reviewers,janv,asuth
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: