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