Changed: Added missing const to list::Contains

~g2k
This commit is contained in:
2005-06-20 05:38:12 -04:00
parent 2e1d7fa1b8
commit 5d4088d68d

View File

@@ -362,9 +362,9 @@ unsigned int list<ItemType>::Length()
} }
template<class ItemType> template<class ItemType>
bool list<ItemType>::Contains(ItemType value) bool list<ItemType>::Contains(ItemType value) const
{ {
listNodke<ItemType>* temp = head; listNode<ItemType>* temp = head;
while(temp != NULL) while(temp != NULL)
{ {
if(temp->data == value) if(temp->data == value)