Bug 1188212 - Fix more constructors in media; r=cpearce
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 27 Jul 2015 21:17:18 -0400
changeset 286603 8a09485288ae6dbaccee0cbc2df5caece6df997f
parent 286602 848fe007da648ac24effd4504cf388f5ff5607d8
child 286604 0582b7cd205221437730cb6ff4f2aab57e4da50a
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1188212
milestone42.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 1188212 - Fix more constructors in media; r=cpearce
media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
--- a/media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
+++ b/media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
@@ -20,17 +20,17 @@ public:
     : mPtr(aData.begin()), mRemaining(aData.length()), mLength(aData.length())
   {
   }
   ByteReader(const uint8_t* aData, size_t aSize)
     : mPtr(aData), mRemaining(aSize), mLength(aSize)
   {
   }
   template<size_t S>
-  ByteReader(const nsAutoTArray<uint8_t, S>& aData)
+  explicit ByteReader(const nsAutoTArray<uint8_t, S>& aData)
     : mPtr(aData.Elements()), mRemaining(aData.Length()), mLength(aData.Length())
   {
   }
   explicit ByteReader(const nsTArray<uint8_t>& aData)
     : mPtr(aData.Elements()), mRemaining(aData.Length()), mLength(aData.Length())
   {
   }
   explicit ByteReader(const MediaByteBuffer* aData)