]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMacroArgument.h
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathMacroArgument.h
index 178c89818d3679bf2fe8c1d3f67b95eefa7cb973..441ac3266fbf98365c674a61c5e5f2ab5bf989dd 100644 (file)
@@ -24,18 +24,18 @@ namespace lyx {
 // A # that failed to parse
 class InsetMathHash : public InsetMath {
 public:
-       InsetMathHash(docstring const & str = docstring()) : str_('#' + str) {};
+       explicit InsetMathHash(docstring const & str = docstring()) : str_('#' + str) {};
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void draw(PainterInfo &, int x, int y) const;
+       void draw(PainterInfo &, int x, int y) const override;
        ///
-       void normalize(NormalStream &) const;
+       void normalize(NormalStream &) const override;
        ///
-       void write(WriteStream & os) const;
+       void write(TeXMathStream & os) const override;
 
 private:
-       Inset * clone() const;
+       Inset * clone() const override;
 
 protected:
        ///
@@ -53,13 +53,13 @@ public:
        /// Assumes 0 < n <= 9
        void setNumber(int n);
        ///
-       InsetCode lyxCode() const { return MATH_MACROARG_CODE; }
+       InsetCode lyxCode() const override { return MATH_MACROARG_CODE; }
 
        ///
-       void normalize(NormalStream &) const;
+       void normalize(NormalStream &) const override;
 
 private:
-       Inset * clone() const;
+       Inset * clone() const override;
        /// A number between 1 and 9
        int number_;
 };