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