Bug 1071571 - Fix more bad implicit constructors in DOM; r=baku

--HG--
extra : rebase_source : 76a5802984faf0b63d9b86ab325428a397b0d27d
This commit is contained in:
Ehsan Akhgari 2014-09-23 22:01:09 -04:00
parent 65c274e1f1
commit e102dad79d
5 changed files with 8 additions and 7 deletions

View File

@ -26,7 +26,7 @@ class WebGLSampler MOZ_FINAL
public:
WebGLSampler(WebGLContext* context);
explicit WebGLSampler(WebGLContext* aContext);
void Delete();
WebGLContext* GetParentObject() const;

View File

@ -8,8 +8,9 @@
#define WEBGLSTRONGTYPES_H_
#include "GLDefs.h"
#include "mozilla/Assertions.h"
#include "mozilla/ArrayUtils.h"
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
// Usage:
// ===========
@ -132,8 +133,8 @@ public:
AssertOnceThatEnumValuesAreSorted();
}
StrongGLenum(GLenum val)
: mValue(val)
MOZ_IMPLICIT StrongGLenum(GLenum aVal)
: mValue(aVal)
{
AssertOnceThatEnumValuesAreSorted();
MOZ_ASSERT(IsValueLegal(mValue));

View File

@ -24,7 +24,7 @@ class WebGLSync MOZ_FINAL
public:
WebGLSync(WebGLContext* context);
explicit WebGLSync(WebGLContext* aContext);
void Delete();
WebGLContext* GetParentObject() const;

View File

@ -26,7 +26,7 @@ class WebGLTransformFeedback MOZ_FINAL
public:
WebGLTransformFeedback(WebGLContext* context);
explicit WebGLTransformFeedback(WebGLContext* aContext);
void Delete();
WebGLContext* GetParentObject() const;

View File

@ -32,7 +32,7 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIMOBILECONNECTION
MobileConnectionChild(uint32_t aServiceId);
explicit MobileConnectionChild(uint32_t aServiceId);
void
Init();