Bug 1355349 - Drop 'virtual' annotation from overridden methods in nsSMILCSSValueType.h
Our coding style says we should only use one of either 'virtual' or 'override'.
In the next patch I would like to add another override to this header so first
we should tidy up the existing declarations.
MozReview-Commit-ID: H5ON1vSBAGc
--- a/dom/smil/nsSMILCSSValueType.h
+++ b/dom/smil/nsSMILCSSValueType.h
@@ -32,32 +32,32 @@ public:
typedef mozilla::AnimationValue AnimationValue;
// Singleton for nsSMILValue objects to hold onto.
static nsSMILCSSValueType sSingleton;
protected:
// nsISMILType Methods
// -------------------
- virtual void Init(nsSMILValue& aValue) const override;
- virtual void Destroy(nsSMILValue&) const override;
- virtual nsresult Assign(nsSMILValue& aDest,
- const nsSMILValue& aSrc) const override;
- virtual bool IsEqual(const nsSMILValue& aLeft,
- const nsSMILValue& aRight) const override;
- virtual nsresult Add(nsSMILValue& aDest,
- const nsSMILValue& aValueToAdd,
- uint32_t aCount) const override;
- virtual nsresult ComputeDistance(const nsSMILValue& aFrom,
- const nsSMILValue& aTo,
+ void Init(nsSMILValue& aValue) const override;
+ void Destroy(nsSMILValue&) const override;
+ nsresult Assign(nsSMILValue& aDest,
+ const nsSMILValue& aSrc) const override;
+ bool IsEqual(const nsSMILValue& aLeft,
+ const nsSMILValue& aRight) const override;
+ nsresult Add(nsSMILValue& aDest,
+ const nsSMILValue& aValueToAdd,
+ uint32_t aCount) const override;
+ nsresult ComputeDistance(const nsSMILValue& aFrom,
+ const nsSMILValue& aTo,
double& aDistance) const override;
- virtual nsresult Interpolate(const nsSMILValue& aStartVal,
- const nsSMILValue& aEndVal,
- double aUnitDistance,
- nsSMILValue& aResult) const override;
+ nsresult Interpolate(const nsSMILValue& aStartVal,
+ const nsSMILValue& aEndVal,
+ double aUnitDistance,
+ nsSMILValue& aResult) const override;
public:
// Helper Methods
// --------------
/**
* Sets up the given nsSMILValue to represent the given string value. The
* string is interpreted as a value for the given property on the given
* element.