]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_sqrtinset.C
index b1bcb84d8f2879b8b63a0d8c78e1eb2d00501f9f..9a3d3c6f72c476292f09c5ad12c156c522087940 100644 (file)
@@ -1,19 +1,20 @@
-
 #include "math_sqrtinset.h"
 #include "math_mathmlstream.h"
 #include "LColor.h"
 #include "frontends/Painter.h"
 #include "textpainter.h"
 
+using std::auto_ptr;
+
 
 MathSqrtInset::MathSqrtInset()
        : MathNestInset(1)
 {}
 
 
-MathInset * MathSqrtInset::clone() const
+auto_ptr<InsetBase> MathSqrtInset::clone() const
 {
-       return new MathSqrtInset(*this);
+       return auto_ptr<InsetBase>(new MathSqrtInset(*this));
 }