]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_numberinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_numberinset.C
index 669a84bf4ef6350fa945bde6b07e5fc8be725127..249221153ef3b79ac9ff1395f57a47240feab776 100644 (file)
@@ -7,15 +7,17 @@
 #include "math_support.h"
 #include "debug.h"
 
+using std::auto_ptr;
+
 
 MathNumberInset::MathNumberInset(string const & s)
        : str_(s)
 {}
 
 
-MathInset * MathNumberInset::clone() const
+auto_ptr<InsetBase> MathNumberInset::clone() const
 {
-       return new MathNumberInset(*this);
+       return auto_ptr<InsetBase>(new MathNumberInset(*this));
 }