Lines Matching refs:newIndex
58 bool MoveItem(int32 oldIndex, int32 newIndex);
249 TemplateList<ITEM, DEFAULT_ITEM_SUPPLIER>::MoveItem(int32 oldIndex, int32 newIndex)
252 && newIndex >= 0 && newIndex <= fItemCount) {
253 if (oldIndex < newIndex - 1) {
255 _MoveItems(fItems + oldIndex + 1, -1, newIndex - oldIndex - 1);
256 fItems[newIndex] = item;
257 } else if (oldIndex > newIndex) {
259 _MoveItems(fItems + newIndex, 1, oldIndex - newIndex);
260 fItems[newIndex] = item;