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