]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_rootinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_rootinset.C
index c0530c6ba3054fdf22705141d9b427ebb12c1d9f..f9ffc027b0ef6be45f5e835d0de856b01adbbc33 100644 (file)
@@ -18,6 +18,7 @@
 
 
 using std::max;
+using std::auto_ptr;
 
 
 MathRootInset::MathRootInset()
@@ -25,9 +26,9 @@ MathRootInset::MathRootInset()
 {}
 
 
-InsetBase * MathRootInset::clone() const
+auto_ptr<InsetBase> MathRootInset::clone() const
 {
-       return new MathRootInset(*this);
+       return auto_ptr<InsetBase>(new MathRootInset(*this));
 }