Bug 1079324 - Fix some more bad implicit constructors in layout; r=dholbert
This commit is contained in:
@@ -195,7 +195,7 @@ namespace {
|
||||
struct MathVarMappingWrapper
|
||||
{
|
||||
const MathVarMapping* const mTable;
|
||||
MathVarMappingWrapper(const MathVarMapping* aTable) : mTable(aTable) {}
|
||||
explicit MathVarMappingWrapper(const MathVarMapping* aTable) : mTable(aTable) {}
|
||||
uint32_t operator[](size_t index) const {
|
||||
return mTable[index].mKey;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace {
|
||||
struct TabwidthAdaptor
|
||||
{
|
||||
const nsTArray<TabWidth>& mWidths;
|
||||
TabwidthAdaptor(const nsTArray<TabWidth>& aWidths)
|
||||
explicit TabwidthAdaptor(const nsTArray<TabWidth>& aWidths)
|
||||
: mWidths(aWidths) {}
|
||||
uint32_t operator[](size_t aIdx) const {
|
||||
return mWidths[aIdx].mOffset;
|
||||
|
||||
@@ -107,7 +107,7 @@ protected:
|
||||
class AnonymousCounterStyle MOZ_FINAL : public CounterStyle
|
||||
{
|
||||
public:
|
||||
AnonymousCounterStyle(const nsCSSValue::Array* aValue);
|
||||
explicit AnonymousCounterStyle(const nsCSSValue::Array* aValue);
|
||||
|
||||
virtual void GetPrefix(nsAString& aResult) MOZ_OVERRIDE;
|
||||
virtual void GetSuffix(nsAString& aResult) MOZ_OVERRIDE;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace dom {
|
||||
class FontFaceBufferSource : public gfxFontFaceBufferSource
|
||||
{
|
||||
public:
|
||||
FontFaceBufferSource(FontFace* aFontFace)
|
||||
explicit FontFaceBufferSource(FontFace* aFontFace)
|
||||
: mFontFace(aFontFace) {}
|
||||
virtual void TakeBuffer(uint8_t*& aBuffer, uint32_t& aLength);
|
||||
|
||||
@@ -71,7 +71,7 @@ class FontFaceInitializer : public nsIRunnable
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
FontFaceInitializer(FontFace* aFontFace)
|
||||
explicit FontFaceInitializer(FontFace* aFontFace)
|
||||
: mFontFace(aFontFace)
|
||||
, mSourceBuffer(nullptr)
|
||||
, mSourceBufferLength(0) {}
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
friend class FontFaceSet;
|
||||
|
||||
public:
|
||||
UserFontSet(FontFaceSet* aFontFaceSet)
|
||||
explicit UserFontSet(FontFaceSet* aFontFaceSet)
|
||||
: mFontFaceSet(aFontFaceSet)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -2836,7 +2836,7 @@ public:
|
||||
ePolygon
|
||||
};
|
||||
|
||||
nsStyleBasicShape(Type type)
|
||||
explicit nsStyleBasicShape(Type type)
|
||||
: mType(type)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user