]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sizeinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_sizeinset.C
index 4d77161c464fee40f836faf4092b7b334ab1da6e..2d883edce15f00402aa98abfe11200aad088eb4e 100644 (file)
@@ -7,17 +7,18 @@
 #include "math_support.h"
 #include "support/LOstream.h"
 
-
 using std::atoi;
+using std::auto_ptr;
+
 
 MathSizeInset::MathSizeInset(latexkeys const * l)
        : MathNestInset(1), key_(l), style_(Styles(atoi(l->extra.c_str())))
 {}
 
 
-MathInset * MathSizeInset::clone() const
+auto_ptr<InsetBase> MathSizeInset::clone() const
 {
-       return new MathSizeInset(*this);
+       return auto_ptr<InsetBase>(new MathSizeInset(*this));
 }