Closed Bug 92256 Opened 23 years ago Closed 12 years ago
Tracking bug: ns
Void Array->ns Auto Void Array, ns CString Array
Many uses of nsVoidArray would be better served by using nsAutoVoidArray, especially if we know that there will (likely) be a small number of items in the array. nsVoidArray makes more sense when it's unlikely there will be any entries (especially if there are a lot of these objects), or if it's likely there will be more than 8. In other cases, it makes sense (if the size is known ahead of time or guessable and is larger than 8) to use nsVoidArray(size). nsStringArray/nsCStringArray can also benefit by using initializers when the size is known. See bug 90545 for examples in the patch; it fixed many cases of this.
I'll take this one.
Assignee: kandrot → rjesup
Depends on: 90545
Priority: -- → P2
Adding a lonely nsVoidArray->nsAutoVoidArray bug which may or may not have been cleaned up.
Depends on: 80210
Assignee: rjesup → nobody
Status: ASSIGNED → NEW
QA Contact: scc → xpcom
If there are no more open dependencies, should this bug be closed?
Priority: P2 → --
(In reply to comment #5) +1 Close? 3 years have passed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.