]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_braceinset.h
Fix event loop to no longer eat CPU
[lyx.git] / src / mathed / math_braceinset.h
index 49960a4898976be93a355c114d9e26171afd1877..c6c0af1747a9594a19e54b9c0f7180f1addc0d98 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        MathBraceInset(MathArray const & ar);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       MathBraceInset const * asBraceInset() const { return this; }
        /// we write extra braces in any case...
        bool extraBraces() const { return true; }
        ///
@@ -44,10 +44,8 @@ public:
        void mathmlize(MathMLStream &) const;
        ///
        void infoize(std::ostream & os) const;
-
 private:
-       /// width of brace character
-       mutable int wid_;
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif