Bug 1444200: Explicitly call the parent class default constructor from AutoTArray's copy constructor. r=froydnj
authorBas Schouten <bschouten@mozilla.com>
Fri, 09 Mar 2018 05:27:14 +0100
changeset 407260 3e333746d6339fe947e3b6e9be581a2b88f67f8d
parent 407259 9219c67624a1081cb6b521dc2087a534f0a4e4a7
child 407261 d9297cea0239855bcbef78e40967b4054983a093
push id100626
push userbschouten@mozilla.com
push dateFri, 09 Mar 2018 04:27:36 +0000
treeherdermozilla-inbound@d9297cea0239 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1444200
milestone60.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 1444200: Explicitly call the parent class default constructor from AutoTArray's copy constructor. r=froydnj MozReview-Commit-ID: 5alSZfYJxmV
xpcom/ds/nsTArray.h
--- a/xpcom/ds/nsTArray.h
+++ b/xpcom/ds/nsTArray.h
@@ -2446,16 +2446,17 @@ public:
   typedef typename base_type::elem_type elem_type;
 
   AutoTArray()
   {
     Init();
   }
 
   AutoTArray(const self_type& aOther)
+    : nsTArray<E>()
   {
     Init();
     this->AppendElements(aOther);
   }
 
   explicit AutoTArray(const base_type& aOther)
   {
     Init();