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-pattern.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/object/sp-pattern.h') diff --git a/src/object/sp-pattern.h b/src/object/sp-pattern.h index a5e7be1d4..dd590280e 100644 --- a/src/object/sp-pattern.h +++ b/src/object/sp-pattern.h @@ -41,7 +41,7 @@ public: enum PatternUnits { UNITS_USERSPACEONUSE, UNITS_OBJECTBOUNDINGBOX }; SPPattern(); - virtual ~SPPattern(); + ~SPPattern() override; /* Reference (href) */ Glib::ustring href; @@ -67,16 +67,16 @@ public: static const gchar *produce(const std::vector &reprs, Geom::Rect bounds, SPDocument *document, Geom::Affine transform, Geom::Affine move); - bool isValid() const; + bool isValid() const override; - virtual cairo_pattern_t *pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity); + cairo_pattern_t *pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity) override; protected: - virtual void build(SPDocument *doc, Inkscape::XML::Node *repr); - virtual void release(); - virtual void set(unsigned int key, const gchar *value); - virtual void update(SPCtx *ctx, unsigned int flags); - virtual void modified(unsigned int flags); + void build(SPDocument *doc, Inkscape::XML::Node *repr) override; + void release() override; + void set(unsigned int key, const gchar *value) override; + void update(SPCtx *ctx, unsigned int flags) override; + void modified(unsigned int flags) override; private: bool _hasItemChildren() const; @@ -129,7 +129,7 @@ public: } protected: - virtual bool _acceptObject(SPObject *obj) const { + bool _acceptObject(SPObject *obj) const override { return SP_IS_PATTERN (obj)&& URIReference::_acceptObject(obj); } }; -- cgit v1.2.3