Index: base/linked_list.h |
=================================================================== |
--- base/linked_list.h (revision 50001) |
+++ base/linked_list.h (working copy) |
@@ -125,10 +125,6 @@ |
return static_cast<T*>(this); |
} |
- void set(LinkNode<T>* prev, LinkNode<T>* next) { |
- previous_ = prev; next_ = next; |
- } |
- |
private: |
LinkNode<T>* previous_; |
LinkNode<T>* next_; |
@@ -140,7 +136,7 @@ |
// The "root" node is self-referential, and forms the basis of a circular |
// list (root_.next() will point back to the start of the list, |
// and root_->previous() wraps around to the end of the list). |
- LinkedList() { root_.set(&root_, &root_); } |
+ LinkedList() : root_(&root_, &root_) {} |
// Appends |e| to the end of the linked list. |
void Append(LinkNode<T>* e) { |