summaryrefslogtreecommitdiffstats
path: root/base/linked_list.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 18:39:53 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 18:39:53 +0000
commit46ce5b568acd801330e52a4e04534d9689990835 (patch)
tree86944486c8faf85322981d343013f2de8ecfbb91 /base/linked_list.h
parentac201f961a6c0151dc596829584339c199527ba5 (diff)
downloadchromium_src-46ce5b568acd801330e52a4e04534d9689990835.zip
chromium_src-46ce5b568acd801330e52a4e04534d9689990835.tar.gz
chromium_src-46ce5b568acd801330e52a4e04534d9689990835.tar.bz2
Revert 49982 - patch
TBR=thakis@chromium.org Review URL: http://codereview.chromium.org/2825006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/linked_list.h')
-rw-r--r--base/linked_list.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/base/linked_list.h b/base/linked_list.h
index 7464997..5b5184f 100644
--- a/base/linked_list.h
+++ b/base/linked_list.h
@@ -125,10 +125,6 @@ class LinkNode {
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 @@ class LinkedList {
// 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) {