summaryrefslogtreecommitdiffstats
path: root/raul/ListImpl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/ListImpl.hpp')
-rw-r--r--raul/ListImpl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/raul/ListImpl.hpp b/raul/ListImpl.hpp
index 815afcb..24fc761 100644
--- a/raul/ListImpl.hpp
+++ b/raul/ListImpl.hpp
@@ -223,11 +223,11 @@ List<T>::chop_front(List<T>& front, size_t front_size, Node* new_head)
} else {
front._size = front_size;
front._head = _head;
- front._tail = new_head->_prev;
+ front._tail = new_head->prev();
if (new_head->prev())
- new_head->prev()->_next = NULL;
+ new_head->prev()->next(NULL);
_head = new_head;
- new_head->_prev = NULL;
+ new_head->prev(NULL);
_size -= front_size;
}
assert((front._head.get() && front._tail.get()) || (!front._head.get() && !front._tail.get()));