bug 1132328 make ReleaseDecoderTask conversion constructor explicit r=fix a=lmandel
authorKarl Tomlinson <karlt+@karlt.net>
Mon, 16 Feb 2015 18:20:56 +1300
changeset 249933 2580e92051c630c7d7f387e859e43975f2ccaee8
parent 249932 bdbae3abf53fe90ad953ce5c4249a8baca1d1949
child 249934 0804aec59497d8bade6237362f95ed0939c1bc4b
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfix, lmandel
bugs1132328
milestone37.0a2
bug 1132328 make ReleaseDecoderTask conversion constructor explicit r=fix a=lmandel
dom/media/mediasource/TrackBuffer.cpp
--- a/dom/media/mediasource/TrackBuffer.cpp
+++ b/dom/media/mediasource/TrackBuffer.cpp
@@ -820,17 +820,17 @@ TrackBuffer::Dump(const char* aPath)
 
     mDecoders[i]->GetResource()->Dump(buf);
   }
 }
 #endif
 
 class ReleaseDecoderTask : public nsRunnable {
 public:
-  ReleaseDecoderTask(SourceBufferDecoder* aDecoder)
+  explicit ReleaseDecoderTask(SourceBufferDecoder* aDecoder)
     : mDecoder(aDecoder)
   {
   }
 
   NS_IMETHOD Run() MOZ_OVERRIDE MOZ_FINAL {
     mDecoder->GetReader()->BreakCycles();
     mDecoder = nullptr;
     return NS_OK;