Closed Bug 1658524 Opened 4 years ago Closed 4 years ago

ToResultInvoke should also work with RefPtr/nsCOMPtr

Categories

(Core :: MFBT, task)

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: sg, Assigned: sg)

Details

Attachments

(1 file)

The following should also compile & work:

RefPtr<Class> foo;
ToResultInvoke(foo, &Class::Method)

(without the need to explicitly call foo.get())

Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3915059cdd7c
Make ToResultInvoke also accept RefPtr<T>/nsCOMPtr<T>. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: