]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathCancelto.h
Add `override` specifiers to improve code maintainability
[features.git] / src / mathed / InsetMathCancelto.h
index ee88cb5e9d5d226aa3289392e23f6cc588c0e9fa..d6da89043dc4114aeab044e5e284822d8d108c1d 100644 (file)
@@ -24,27 +24,27 @@ public:
        ///
        bool idxUpDown(Cursor & cur, bool up) const;
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       void write(WriteStream & os) const;
+       void write(WriteStream & os) const override;
        /// write normalized content
-       void normalize(NormalStream & ns) const;
+       void normalize(NormalStream & ns) const override;
        ///
-       void infoize(odocstream & os) const;
+       void infoize(odocstream & os) const override;
        ///
-       InsetCode lyxCode() const { return MATH_CANCELTO_CODE; }
+       InsetCode lyxCode() const override { return MATH_CANCELTO_CODE; }
        /// Nothing for now
-       void mathmlize(MathStream &) const {}
+       void mathmlize(MathStream &) const override {}
        /// Nothing for HTML
-       void htmlize(HtmlStream &) const {}
+       void htmlize(HtmlStream &) const override {}
        ///
-       void validate(LaTeXFeatures &) const;
+       void validate(LaTeXFeatures &) const override;
 
 private:
        ///
-       virtual Inset * clone() const;
+       Inset * clone() const override;
 };