Closed Bug 221484 Opened 22 years ago Closed 17 years ago

use nsCOMArray.Sort() in AutoComplete results, and other cleanup

Categories

(Core Graveyard :: History: Global, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: alecf, Unassigned)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

Now that we have bug 211535 fixed, we can get rid of the intermediate nsIAutoCompleteItems** that is used here: http://lxr.mozilla.org/seamonkey/source/xpfe/components/history/src/nsGlobalHistory.cpp#4198 that is used for sorting. What we probably also want to do is make a new helper function in nsArray.h called NS_AppendElements(nsIMutableArray* dest, const nsCOMArray& elements); around here: http://lxr.mozilla.org/seamonkey/source/xpcom/ds/nsArray.h#67 And then change nsIAutoCompleteResults' "items" array to be an nsIArray... this would clean up a whole host of junk.
Whiteboard: good first bug
I opened two bugs to track the aspects of this bug that still exist in FB; see bug 233479 and bug 233481.
Comment on attachment 140922 [details] [diff] [review] add NS_AppendElements to nsArray.h do we want to make aWeak default to PR_FALSE? either way, sr=alecf
Attachment #140922 - Flags: superreview+
Whiteboard: good first bug → [good first bug]
Assignee: bross2 → nobody
QA Contact: chrispetersen → history.global
Is this bug relevant any more? It seems that most of the underlying code has changed in the last three years so that the original issues here are no longer valid. Not sure what the proper resolution for an expired bug is, so I'll leave resolution to someone more experienced in Bugzilla.
Probably WFM is the way to go.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: