コード例 #1
0
// 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();
    }
コード例 #2
0
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;
}