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 112362 8ccd10510d23fb200e8da068ca8887996bfc2125
parent 112361 c66d2bc6e91bb7f8770ebac945095af3a515e7d0
child 112363 197b182baf4fe99e2c6db0a43e73b3afdeb95921
push id17542
push userjwalden@mit.edu
push dateTue, 06 Nov 2012 00:27:28 +0000
treeherdermozilla-inbound@8ccd10510d23 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslumpy
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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() {