Closed
Bug 1122991
Opened 9 years ago
Closed 9 years ago
Mark findIndexOfClosure as stack class, and make its targetElement member a strong ref; r=froydnj
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(1 file)
846 bytes,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ehsan
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8550797 -
Flags: review?(nfroyd)
Comment 2•9 years ago
|
||
Comment on attachment 8550797 [details] [diff] [review] Mark findIndexOfClosure as stack class, and make its targetElement member a strong ref Review of attachment 8550797 [details] [diff] [review]: ----------------------------------------------------------------- r=me, but I think the strong-refness is just unnecessary work in this case. ::: xpcom/ds/nsArray.cpp @@ +14,2 @@ > { > + nsCOMPtr<nsISupports> targetElement; Can't IndexOf() just assume that somebody else is holding references to the element?
Attachment #8550797 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 3•9 years ago
|
||
I can do something better in fact! Since this is just used for pointer comparison, I'll convert it to a void*!
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/df5fad5e386d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•