]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMacroArgument.h
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / mathed / InsetMathMacroArgument.h
index 4fe0de435b9fdbe6ef2c150d2ac53f8d9e4a62fc..c11a9a6dbb2928b31c0aacb93e05db3f4a162f94 100644 (file)
@@ -24,15 +24,15 @@ namespace lyx {
 // A # that failed to parse
 class InsetMathHash : public InsetMath {
 public:
-       explicit InsetMathHash(docstring const & str = docstring()) : str_('#' + str) {};
+       explicit InsetMathHash(docstring const & str = docstring()) : str_('#' + str) {}
        ///
        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 override;
        ///
-       void write(WriteStream & os) const override;
+       void write(TeXMathStream & os) const override;
 
 private:
        Inset * clone() const override;