Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a very small code change bundled with a huge number of beta addresses for
MxList
and related template classes.Prior to this change, these functions call
DeleteAll
on anMxList
1:MxCompositePresenter::EndAction
is a special case; it is the only one of these that skips destroying the values for each entry in the list. The optional parameter has a default ofTRUE
, but we useFALSE
explicitly here.The beta shows that these are two different functions and no parameter is passed. It doesn't seem to be a case where the destroy-or-not option is part of the template, because
MxCompositePresenter
calls the same functions onMxList<MxDSAction *>
as other functions that use this list. I changedDeleteAll()
and the new functionEmpty()
so the for-loop matches the beta.The functions that call
DeleteAll()
orEmpty()
appear unaffected, but this change generated the usual noise to other functions. Setting them_first
andm_last
members to null in one line matched the beta but generated no diff in retail.Other stuff:
The beta supports a change to the
Next
andPrev
functions ofMxListCursor
where the if-block is reversed, but this drops accuracy across the board so I left it alone. i.e.:There's a note in
mxregionlist.h
about theMxRegionTopBottomListCursor
constructor. I couldn't find any clear evidence that this should beMxRegionTopBottomList
versusMxPtrList<MxRegionTopBottom>*
, but the addrs are there so we can take another look.Footnotes
Each
MxList
destructor also callsDeleteAll
. ↩