Closed Bug 85189 Opened 24 years ago Closed 24 years ago

cleanup of ListIterator

Categories

(Core :: XSLT, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: sicking, Assigned: sicking)

References

Details

Attachments

(3 files)

The ListIterator can operate in reversed mode which clutters the ListIterator code a lot. This is only used for stacks and PathExpr and can easily be removed. I have a patch which removes the reversed mode as well as remove the allowRemove flag which dosn't surve any purpose, and the count member which isn't used. I've also added |move| |addBefore| and |moveToEnd| methods which i'll need later.
List::previous() should unset atEndOfList in the else if ( atEndOfList ) part instead of setting this just when going past the head. reuse forward in ListIterator::advance if ( i > 0 ) { Axel
r=me Axel
did some whitespace cleanup and added myself as contributor
Blocks: 78068
Hah, I found two nits ;), space out the arguments in + list->insertAfter(objPtr,currentItem); and + list->insertBefore(objPtr,currentItem); r=peterv.
damn! :) oh well, consider it fixed
Status: NEW → ASSIGNED
Whiteboard: Fix in hand. Have r=Axel,r=peterv. Need sr=, a=.
Target Milestone: --- → mozilla0.9.2
no reason to aim this for 0.9.2
Target Milestone: mozilla0.9.2 → mozilla0.9.3
cc'ing scc for sr, adding another this-bug-blocks
Blocks: 65858
sr=scc
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: Fix in hand. Have r=Axel,r=peterv. Need sr=, a=.
bitching buttons, verfication spam
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: