References shouldn't be null

This commit is contained in:
Michael Cook (mackal) 2020-01-16 17:17:31 -05:00
parent e6a14beb2e
commit e4c4e5edb2

View File

@ -278,12 +278,6 @@ void LinkedListIterator<TYPE>::Replace(const TYPE& new_data)
template<class TYPE>
void LinkedListIterator<TYPE>::Reset()
{
if (!(&list))
{
current_element=0;
return;
}
if (dir == FORWARD)
{
current_element = list.first;