Lines Matching refs:newIndex
53 bool MoveItem(int32 oldIndex, int32 newIndex);
244 List<ITEM, DEFAULT_ITEM_SUPPLIER>::MoveItem(int32 oldIndex, int32 newIndex)
247 && newIndex >= 0 && newIndex <= fItemCount) {
248 if (oldIndex < newIndex - 1) {
250 _MoveItems(fItems + oldIndex + 1, -1, newIndex - oldIndex - 1);
251 fItems[newIndex] = item;
252 } else if (oldIndex > newIndex) {
254 _MoveItems(fItems + newIndex, 1, oldIndex - newIndex);
255 fItems[newIndex] = item;