Bug 907227 - Properly delete LinkedListElement's implicit copy-constructor and operator=. r=waldo
authorJustin Lebar <justin.lebar@gmail.com>
Wed, 21 Aug 2013 12:04:29 -0700
changeset 156708 b1beca39585a1f14b08ed2b9e846f604180ee824
parent 156707 35c8fa3d4fe734f9d55985e2540726b25fd6c275
child 156709 0fc0283ac2b16dd5b6cf8846933780dd01440aeb
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswaldo
bugs907227
milestone26.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
Bug 907227 - Properly delete LinkedListElement's implicit copy-constructor and operator=. r=waldo
mfbt/LinkedList.h
--- a/mfbt/LinkedList.h
+++ b/mfbt/LinkedList.h
@@ -247,18 +247,18 @@ class LinkedListElement
 
       listElem->next = this;
       listElem->prev = this->prev;
       this->prev->next = listElem;
       this->prev = listElem;
     }
 
   private:
-    LinkedListElement& operator=(const LinkedList<T>& other) MOZ_DELETE;
-    LinkedListElement(const LinkedList<T>& other) MOZ_DELETE;
+    LinkedListElement& operator=(const LinkedListElement<T>& other) MOZ_DELETE;
+    LinkedListElement(const LinkedListElement<T>& other) MOZ_DELETE;
 };
 
 template<typename T>
 class LinkedList
 {
   private:
     LinkedListElement<T> sentinel;