diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-14 22:45:10 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:00 +0000 |
| commit | 7654fc11a6442e6ee2a463d6dee6458c0f53768f (patch) | |
| tree | 7eb16a57b879747842bb0401dfee7fb47cd16f95 /src/object/sp-ellipse.h | |
| parent | Fix build issue caused by f09962028d017896279b717a6621a4de772d1b4f on GTK+ <3... (diff) | |
| download | inkscape-7654fc11a6442e6ee2a463d6dee6458c0f53768f.tar.gz inkscape-7654fc11a6442e6ee2a463d6dee6458c0f53768f.zip | |
Run clang-tidy’s modernize-use-override pass.
This adds the override specifier on all methods which override a virtual
method, whether they were already virtual or missing this specifier.
Diffstat (limited to 'src/object/sp-ellipse.h')
| -rw-r--r-- | src/object/sp-ellipse.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/object/sp-ellipse.h b/src/object/sp-ellipse.h index a173f39f1..2721fc74f 100644 --- a/src/object/sp-ellipse.h +++ b/src/object/sp-ellipse.h @@ -39,7 +39,7 @@ enum GenericEllipseArcType { class SPGenericEllipse : public SPShape { public: SPGenericEllipse(); - virtual ~SPGenericEllipse(); + ~SPGenericEllipse() override; // Regardless of type, the ellipse/circle/arc is stored // internally with these variables. (Circle radius is rx). @@ -56,21 +56,21 @@ public: GenericEllipseType type; GenericEllipseArcType arc_type; - virtual void build(SPDocument *document, Inkscape::XML::Node *repr); + void build(SPDocument *document, Inkscape::XML::Node *repr) override; - virtual void set(unsigned int key, char const *value); - virtual void update(SPCtx *ctx, unsigned int flags); + void set(unsigned int key, char const *value) override; + void update(SPCtx *ctx, unsigned int flags) override; - virtual Inkscape::XML::Node *write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags); - virtual const char *displayName() const; + Inkscape::XML::Node *write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags) override; + const char *displayName() const override; - virtual void set_shape(); - virtual void update_patheffect(bool write); - virtual Geom::Affine set_transform(Geom::Affine const &xform); + void set_shape() override; + void update_patheffect(bool write) override; + Geom::Affine set_transform(Geom::Affine const &xform) override; - virtual void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const; + void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const override; - virtual void modified(unsigned int flags); + void modified(unsigned int flags) override; /** * @brief Makes sure that start and end lie between 0 and 2 * PI. |
