Bug 1061252 - Fix more bad implicit constructors in media code; r=roc

This commit is contained in:
Ehsan Akhgari 2014-09-02 09:46:56 -04:00
parent 178da73c35
commit 42db02677e
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ GstMozVideoBufferData* gst_moz_video_buffer_get_data(const GstMozVideoBuffer* bu
class GstMozVideoBufferData {
public:
GstMozVideoBufferData(layers::PlanarYCbCrImage* aImage) : mImage(aImage) {}
explicit GstMozVideoBufferData(layers::PlanarYCbCrImage* aImage) : mImage(aImage) {}
static void* Copy(void* aData) {
return new GstMozVideoBufferData(reinterpret_cast<GstMozVideoBufferData*>(aData)->mImage);

View File

@ -38,7 +38,7 @@ class GStreamerReader : public MediaDecoderReader
typedef gfx::IntRect IntRect;
public:
GStreamerReader(AbstractMediaDecoder* aDecoder);
explicit GStreamerReader(AbstractMediaDecoder* aDecoder);
virtual ~GStreamerReader();
virtual nsresult Init(MediaDecoderReader* aCloneDonor);