Closed Bug 357261 Opened 19 years ago Closed 19 years ago

Would like a relaxed version of nsCOMArray

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hwaara, Unassigned)

Details

I'd like to be able to use an array that refcounts XPCOM objects, even though they're concrete ones. In my case, I have to static cast to nsISupports, since there's an ambigious base. It would be nice with a more relaxed version of nsCOMArray that took void* pointers, but still had the same ownership model. Does it make sense?
Smaug points out that I can use nsTArray<nsRefPtr<MyAmbigiousClass> >. WFM!
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.