]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathClass.h
Revert "Fix a number of signedness warnings"
[lyx.git] / src / mathed / InsetMathClass.h
index f50040d3b4b4fdc436ff8ac7fc4e31d0822872d1..390d77aca04f39c1163eddae2041e13e50838902 100644 (file)
@@ -27,20 +27,24 @@ public:
        ///
        InsetMathClass(Buffer * buf, MathClass);
        ///
-       docstring name() const;
+       docstring name() const override;
        ///
-       MathClass mathClass() const { return math_class_; }
+       MathClass mathClass() const override { return math_class_; }
        ///
-       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 infoize(odocstream & os) const;
+       void infoize(odocstream & os) const override;
        ///
-       InsetCode lyxCode() const { return MATH_CLASS_CODE; }
+       InsetCode lyxCode() const override { return MATH_CLASS_CODE; }
+       ///
+       InsetMathClass * asClassInset() { return this; }
+       ///
+       InsetMathClass const * asClassInset() const override { return this; }
 
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const override;
        ///
        MathClass math_class_;
 };