Closed
Bug 410688
Opened 17 years ago
Closed 17 years ago
No macro to enumerate an nsTObserverArray<nsCOMPtr<nsIFoo> >
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: neil, Unassigned)
Details
A macro exists to enumerate an nsTObserverArray<nsIFoo*> but that array doesn't own references to its elements, and the macro doesn't work for nsCOMPtr types.
Comment 1•17 years ago
|
||
What happens if you try to use the generic enumerator when the array is an array of nsCOMPtrs?
Comment 2•17 years ago
|
||
it won't compile, the macro is designed for arrays of raw interface pointers only.
we could add a macro for the case where T is a strong pointer, or otherwise doesn't need COMPtr-ifying...
or you could just write the loop out, it's only three lines, no?
Reporter | ||
Comment 3•17 years ago
|
||
It now looks as if we won't be able to use a generic macro after all.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•