From 7654fc11a6442e6ee2a463d6dee6458c0f53768f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 00:45:10 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-override=20p?= =?UTF-8?q?ass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier. --- src/object/sp-rect.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/object/sp-rect.h') diff --git a/src/object/sp-rect.h b/src/object/sp-rect.h index 757229724..68d2507a4 100644 --- a/src/object/sp-rect.h +++ b/src/object/sp-rect.h @@ -25,7 +25,7 @@ class SPRect : public SPShape { public: SPRect(); - virtual ~SPRect(); + ~SPRect() override; void setPosition(double x, double y, double width, double height); @@ -49,19 +49,19 @@ public: void compensateRxRy(Geom::Affine xform); - virtual void build(SPDocument* doc, Inkscape::XML::Node* repr); + void build(SPDocument* doc, Inkscape::XML::Node* repr) override; - virtual void set(unsigned key, char const *value); - virtual void update(SPCtx* ctx, unsigned int flags); + void set(unsigned 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 Geom::Affine set_transform(Geom::Affine const& xform); + void set_shape() override; + Geom::Affine set_transform(Geom::Affine const& xform) override; - virtual void snappoints(std::vector &p, Inkscape::SnapPreferences const *snapprefs) const; - virtual void convert_to_guides() const; + void snappoints(std::vector &p, Inkscape::SnapPreferences const *snapprefs) const override; + void convert_to_guides() const override; SVGLength x; SVGLength y; -- cgit v1.2.3