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-pattern.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-pattern.h')
| -rw-r--r-- | src/object/sp-pattern.h | 18 |
1 files changed, 9 insertions, 9 deletions
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<Inkscape::XML::Node *> &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); } }; |
