summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.h')
-rw-r--r--Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.h b/Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.h
index a5318b60b..898fabb19 100644
--- a/Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.h
+++ b/Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmoothAbs.h
@@ -19,32 +19,27 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGPathSegCurvetoQuadraticSmoothAbs_h
-#define SVGPathSegCurvetoQuadraticSmoothAbs_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGPathSegWithContext.h"
namespace WebCore {
-class SVGPathSegCurvetoQuadraticSmoothAbs : public SVGPathSegSingleCoordinate {
+class SVGPathSegCurvetoQuadraticSmoothAbs final : public SVGPathSegSingleCoordinate {
public:
- static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+ static Ref<SVGPathSegCurvetoQuadraticSmoothAbs> create(const SVGPathElement& element, SVGPathSegRole role, float x, float y)
{
- return adoptRef(new SVGPathSegCurvetoQuadraticSmoothAbs(element, role, x, y));
+ return adoptRef(*new SVGPathSegCurvetoQuadraticSmoothAbs(element, role, x, y));
}
private:
- SVGPathSegCurvetoQuadraticSmoothAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y)
+ SVGPathSegCurvetoQuadraticSmoothAbs(const SVGPathElement& element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
}
- virtual unsigned short pathSegType() const override { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; }
- virtual String pathSegTypeAsLetter() const override { return "T"; }
+ unsigned short pathSegType() const final { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; }
+ String pathSegTypeAsLetter() const final { return "T"; }
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif