Changed: Added missing const to list::Contains
~g2k
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user