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