зеркало из https://github.com/mozilla/gecko-dev.git
Bug 542731: Add 'explicit' label to all single-arg constructors in SMIL code. r=roc
This commit is contained in:
Родитель
38fb505f32
Коммит
fd7772777e
|
@ -474,7 +474,7 @@ nsSMILAnimationFunction::AccumulateResult(const nsSMILValueArray& aValues,
|
|||
{
|
||||
if (!IsToAnimation() && GetAccumulate() && mRepeatIteration)
|
||||
{
|
||||
nsSMILValue lastValue = aValues[aValues.Length() - 1];
|
||||
const nsSMILValue& lastValue = aValues[aValues.Length() - 1];
|
||||
|
||||
// If the target attribute type doesn't support addition, Add will
|
||||
// fail and we leave aResult untouched.
|
||||
|
|
|
@ -77,7 +77,7 @@ public:
|
|||
typedef const nsSMILCompositorKey& KeyType;
|
||||
typedef const nsSMILCompositorKey* KeyTypePointer;
|
||||
|
||||
nsSMILCompositor(KeyTypePointer aKey) : mKey(*aKey) { }
|
||||
explicit nsSMILCompositor(KeyTypePointer aKey) : mKey(*aKey) { }
|
||||
nsSMILCompositor(const nsSMILCompositor& toCopy)
|
||||
: mKey(toCopy.mKey),
|
||||
mAnimationFunctions(toCopy.mAnimationFunctions)
|
||||
|
|
|
@ -54,7 +54,8 @@ class nsSMILRepeatCount
|
|||
{
|
||||
public:
|
||||
nsSMILRepeatCount() : mCount(kNotSet) {}
|
||||
nsSMILRepeatCount(double aCount) : mCount(kNotSet) { SetCount(aCount); }
|
||||
explicit nsSMILRepeatCount(double aCount)
|
||||
: mCount(kNotSet) { SetCount(aCount); }
|
||||
|
||||
operator double() const { return mCount; }
|
||||
PRBool IsDefinite() const {
|
||||
|
|
|
@ -46,7 +46,7 @@ class nsSMILValue
|
|||
{
|
||||
public:
|
||||
nsSMILValue() : mU(), mType(&nsSMILNullType::sSingleton) { }
|
||||
nsSMILValue(const nsISMILType* aType);
|
||||
explicit nsSMILValue(const nsISMILType* aType);
|
||||
nsSMILValue(const nsSMILValue& aVal);
|
||||
|
||||
~nsSMILValue()
|
||||
|
|
|
@ -75,7 +75,7 @@ public:
|
|||
TRANSFORM_MATRIX
|
||||
};
|
||||
|
||||
nsSVGSMILTransform(TransformType aType)
|
||||
explicit nsSVGSMILTransform(TransformType aType)
|
||||
: mTransformType(aType)
|
||||
{
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
|
@ -94,7 +94,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
nsSVGSMILTransform(float (&aParams)[6])
|
||||
explicit nsSVGSMILTransform(float (&aParams)[6])
|
||||
: mTransformType(TRANSFORM_MATRIX)
|
||||
{
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче