]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_sqrtinset.C
index bc642c06a8dd23244472fb580d3c34b286081b86..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)
 {}
 
 
-InsetBase * MathSqrtInset::clone() const
+auto_ptr<InsetBase> MathSqrtInset::clone() const
 {
-       return new MathSqrtInset(*this);
+       return auto_ptr<InsetBase>(new MathSqrtInset(*this));
 }