// CFepLayoutChoiceList::RemoveItemByCommand // Remove a choice list item by command. // (other items were commented in a header). // --------------------------------------------------------------------------- // EXPORT_C void CFepLayoutChoiceList::RemoveItemByCommand(TInt aCommand) { for(int ii = 0; ii < iItemList.Count(); ++ii) { if( iItemList[ii]->iCommand == aCommand ) { RemoveItemByIndex(ii); } } //ReCalcLayout(); }
void * TPointerArray::RemoveItem(void* removeItem) { void *retItem = NULL; for (NMUInt32 ndx = 0; ndx < fNumberOfItems; ndx++) { if (fItemArray[ndx] == removeItem) { retItem = RemoveItemByIndex(ndx); break; } } return retItem; }