Closed Bug 178182 Opened 22 years ago Closed 13 years ago

|nsCOMPtr|: add convenience function for `getters' to |AddRef| a result

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: scc, Unassigned)

References

Details

See bug #172030 for detailed discussion which I will abstract here: for functions that return (or should return) an |already_AddRefed<T>|, can we provide a typesafe convenience function that |AddRef|s and returns given either an |nsCOMPtr| or a raw pointer as a source See, in particular, discussion in and around this comment -- http://bugzilla.mozilla.org/show_bug.cgi?id=172030#c18
Status: NEW → ASSIGNED
Severity: normal → enhancement
See also dbradley's suggested solution to this problem in bug #190746
Assignee: scc → nobody
Status: ASSIGNED → NEW
QA Contact: scc → xpcom
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.