Skip to content

Commit

Permalink
Replace ArrayList in ItemContainerGenerator with List<EmptyGroupItem> (
Browse files Browse the repository at this point in the history
…#9432)

* replace ArrayList in ItemContainerGenerator with List<EmptyGroupItem>

* use fully qualified type when initializing a new instance
  • Loading branch information
h3xds1nz authored Jan 2, 2025
1 parent 78d7e1f commit aa1896f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,8 @@ void AddEmptyGroupItem(CollectionViewGroup group)

// add it to the list of placeholder items (this keeps it from being GC'd)
if (_emptyGroupItems == null)
_emptyGroupItems = new ArrayList();
_emptyGroupItems = new List<EmptyGroupItem>();

_emptyGroupItems.Add(emptyGroupItem);
}

Expand Down Expand Up @@ -2792,7 +2793,7 @@ void OnRefresh()
private ReadOnlyCollection<object> _itemsReadOnly;
private GroupStyle _groupStyle;
private ItemContainerGenerator _parent;
private ArrayList _emptyGroupItems;
private List<EmptyGroupItem> _emptyGroupItems;
private int _alternationCount;

private Type _containerType; // type of containers on the recycle queue
Expand Down

0 comments on commit aa1896f

Please # to comment.