Add more thisDuringConstruction() use in LinkedList to silence warnings. No bug, r=lumpy
Add more thisDuringConstruction() use in LinkedList to silence warnings. No bug, r=lumpy
--- 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() {