Closed
Bug 85189
Opened 24 years ago
Closed 24 years ago
cleanup of ListIterator
Categories
(Core :: XSLT, defect)
Core
XSLT
Tracking
()
VERIFIED
FIXED
mozilla0.9.3
People
(Reporter: sicking, Assigned: sicking)
References
Details
Attachments
(3 files)
11.03 KB,
patch
|
Details | Diff | Splinter Review | |
19.35 KB,
patch
|
Details | Diff | Splinter Review | |
21.32 KB,
patch
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
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
Assignee | ||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
r=me
Axel
Assignee | ||
Comment 5•24 years ago
|
||
Assignee | ||
Comment 6•24 years ago
|
||
did some whitespace cleanup and added myself as contributor
Blocks: 78068
Comment 7•24 years ago
|
||
Hah, I found two nits ;), space out the arguments in
+ list->insertAfter(objPtr,currentItem);
and
+ list->insertBefore(objPtr,currentItem);
r=peterv.
Assignee | ||
Comment 8•24 years ago
|
||
damn! :)
oh well, consider it fixed
Updated•24 years ago
|
Status: NEW → ASSIGNED
Whiteboard: Fix in hand. Have r=Axel,r=peterv. Need sr=, a=.
Target Milestone: --- → mozilla0.9.2
Assignee | ||
Comment 9•24 years ago
|
||
no reason to aim this for 0.9.2
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Comment 11•24 years ago
|
||
sr=scc
Assignee | ||
Comment 12•24 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•24 years ago
|
Whiteboard: Fix in hand. Have r=Axel,r=peterv. Need sr=, a=.
You need to log in
before you can comment on or make changes to this bug.
Description
•