diff options
Diffstat (limited to 'Source/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.h')
-rw-r--r-- | Source/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/Source/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.h b/Source/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.h index 0a8252e0e..dec36dbd0 100644 --- a/Source/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.h +++ b/Source/WebCore/svg/SVGPathSegCurvetoQuadraticAbs.h @@ -19,32 +19,27 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGPathSegCurvetoQuadraticAbs_h -#define SVGPathSegCurvetoQuadraticAbs_h +#pragma once -#if ENABLE(SVG) #include "SVGPathSegCurvetoQuadratic.h" namespace WebCore { -class SVGPathSegCurvetoQuadraticAbs : public SVGPathSegCurvetoQuadratic { +class SVGPathSegCurvetoQuadraticAbs final : public SVGPathSegCurvetoQuadratic { public: - static PassRefPtr<SVGPathSegCurvetoQuadraticAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1) + static Ref<SVGPathSegCurvetoQuadraticAbs> create(const SVGPathElement& element, SVGPathSegRole role, float x, float y, float x1, float y1) { - return adoptRef(new SVGPathSegCurvetoQuadraticAbs(element, role, x, y, x1, y1)); + return adoptRef(*new SVGPathSegCurvetoQuadraticAbs(element, role, x, y, x1, y1)); } private: - SVGPathSegCurvetoQuadraticAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1) + SVGPathSegCurvetoQuadraticAbs(const SVGPathElement& element, SVGPathSegRole role, float x, float y, float x1, float y1) : SVGPathSegCurvetoQuadratic(element, role, x, y, x1, y1) { } - virtual unsigned short pathSegType() const override { return PATHSEG_CURVETO_QUADRATIC_ABS; } - virtual String pathSegTypeAsLetter() const override { return "Q"; } + unsigned short pathSegType() const final { return PATHSEG_CURVETO_QUADRATIC_ABS; } + String pathSegTypeAsLetter() const final { return "Q"; } }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |