vgui/base/COptionVarList.cpp
void COptionVarList::DeleteAllItems()
{
	for (int i = 0; i < _dataItems.GetCount(); i++)
	{
		if ( _dataItems[i] )
		{
			delete _dataItems[i]->panel;
		}
		delete _dataItems[i];
	}
	_dataItems.RemoveAll();

	InvalidateLayout();
}
//-----------------------------------------------------------------------------
// Purpose: clears and deletes all the memory used by the data items
//-----------------------------------------------------------------------------
clears and deletes all the memory used by the data items
clears and deletes all the memory used by the data items
void COptionVarList::DeleteAllItems()
{
	for (int i = 0; i < _dataItems.GetCount(); i++)
	{
		if ( _dataItems[i] )
		{
			delete _dataItems[i]->panel;
		}
		delete _dataItems[i];
	}
	_dataItems.RemoveAll();
	InvalidateLayout();
}
void COptionVarList :: DeleteAllItems ( ) { for ( int i = 0 ; i < _dataItems . GetCount ( ) ; i ++ ) { if ( _dataItems [ i ] ) { delete _dataItems [ i ] -> panel ; } delete _dataItems [ i ] ; } _dataItems . RemoveAll ( ) ; InvalidateLayout ( ) ; }
Purpose: clears and deletes all the memory used by the data items
Purpose : clears and deletes all the memory used by the data items