]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_numberinset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_numberinset.h
index aca947bb9c02395b49e10fc521a97e6aa528bd42..c936b8d034470317feb64e575a24442f7a4869ed 100644 (file)
 class MathNumberInset : public MathInset {
 public:
        ///
-       explicit MathNumberInset(string const & s);
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       explicit MathNumberInset(std::string const & s);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
-       string str() const { return str_; }
+       std::string str() const { return str_; }
        ///
        MathNumberInset * asNumberInset() { return this; }
 
@@ -45,7 +43,8 @@ public:
        void write(WriteStream & os) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// the number as string
-       string str_;
+       std::string str_;
 };
 #endif