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 143763 b1beca39585a1f14b08ed2b9e846f604180ee824
parent 143762 35c8fa3d4fe734f9d55985e2540726b25fd6c275
child 143764 0fc0283ac2b16dd5b6cf8846933780dd01440aeb
push id32755
push userjlebar@mozilla.com
push dateWed, 21 Aug 2013 21:22:19 +0000
treeherdermozilla-inbound@b1beca39585a [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;