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
Родитель fdb6457b8b
Коммит 09251fa9eb
5 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

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

Просмотреть файл

@ -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));

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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