]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontinset.h
Fix event loop to no longer eat CPU
[lyx.git] / src / mathed / math_fontinset.h
index 1861b03a0a2f3a8d5f516caa2f6e033c99ab4ed5..efe6ce2033b032db71660a79ffd2f48c80dfb3c8 100644 (file)
@@ -23,15 +23,13 @@ public:
        ///
        explicit MathFontInset(latexkeys const * key);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        MathFontInset * asFontInset() { return this; }
        ///
        MathFontInset const * asFontInset() const { return this; }
        /// are we in math mode, text mode, or unsure?
        mode_type currentMode() const;
        ///
-       string name() const;
+       std::string name() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -46,6 +44,7 @@ public:
        void infoize(std::ostream & os) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// the font to be used on screen
        latexkeys const * key_;
 };