Add more thisDuringConstruction() use in LinkedList to silence warnings. No bug, r=lumpy
authorJeff Walden <jwalden@mit.edu>
Mon, 05 Nov 2012 13:36:50 -0800
changeset 112364 8ccd10510d23fb200e8da068ca8887996bfc2125
parent 112363 c66d2bc6e91bb7f8770ebac945095af3a515e7d0
child 112365 197b182baf4fe99e2c6db0a43e73b3afdeb95921
push idunknown
push userunknown
push dateunknown
reviewerslumpy
milestone19.0a1
Add more thisDuringConstruction() use in LinkedList to silence warnings. No bug, r=lumpy
mfbt/LinkedList.h
--- a/mfbt/LinkedList.h
+++ b/mfbt/LinkedList.h
@@ -196,18 +196,18 @@ class LinkedListElement
     friend class LinkedList<T>;
 
     enum NodeKind {
       NODE_KIND_NORMAL,
       NODE_KIND_SENTINEL
     };
 
     LinkedListElement(NodeKind nodeKind)
-      : next(this),
-        prev(this),
+      : next(thisDuringConstruction()),
+        prev(thisDuringConstruction()),
         isSentinel(nodeKind == NODE_KIND_SENTINEL)
     { }
 
     /*
      * Return |this| cast to T* if we're a normal node, or return NULL if we're
      * a sentinel node.
      */
     T* asT() {