Bug 1079325 - Fix some more bad implicit constructors in media; r=cpearce
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 24 Sep 2014 09:16:53 -0400
changeset 209242 f992171f26cd520d7700665c6097a7ed8661d6e4
parent 209241 24045f0d8b0d680d634f1b1ee151c3c44b08ebde
child 209243 dd1ab67d5b3c39e1a12bff198ac9bf453238eb68
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerscpearce
bugs1079325
milestone35.0a1
Bug 1079325 - Fix some more bad implicit constructors in media; r=cpearce
media/gmp-clearkey/0.1/ClearKeyDecryptionManager.cpp
media/gmp-clearkey/0.1/ClearKeyDecryptionManager.h
--- a/media/gmp-clearkey/0.1/ClearKeyDecryptionManager.cpp
+++ b/media/gmp-clearkey/0.1/ClearKeyDecryptionManager.cpp
@@ -48,17 +48,17 @@ private:
 
     ClearKeyDecryptor* mTarget;
     GMPBuffer* mBuffer;
     GMPEncryptedBufferMetadata* mMetadata;
   };
 
   struct DestroyTask : public GMPTask
   {
-    DestroyTask(ClearKeyDecryptor* aTarget) : mTarget(aTarget) { }
+    explicit DestroyTask(ClearKeyDecryptor* aTarget) : mTarget(aTarget) { }
 
     virtual void Run() MOZ_OVERRIDE {
       delete mTarget;
     }
 
     virtual void Destroy() MOZ_OVERRIDE {
       delete this;
     }
--- a/media/gmp-clearkey/0.1/ClearKeyDecryptionManager.h
+++ b/media/gmp-clearkey/0.1/ClearKeyDecryptionManager.h
@@ -14,17 +14,17 @@
 #include "gmp-api/gmp-decryption.h"
 #include "ScopedNSSTypes.h"
 
 class ClearKeyDecryptor;
 
 class ClearKeyDecryptionManager MOZ_FINAL : public GMPDecryptor
 {
 public:
-  ClearKeyDecryptionManager(GMPDecryptorHost* aHost);
+  explicit ClearKeyDecryptionManager(GMPDecryptorHost* aHost);
   ~ClearKeyDecryptionManager();
 
   virtual void Init(GMPDecryptorCallback* aCallback) MOZ_OVERRIDE;
 
   virtual void CreateSession(uint32_t aPromiseId,
                              const char* aInitDataType,
                              uint32_t aInitDataTypeSize,
                              const uint8_t* aInitData,