]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_amsarrayinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_amsarrayinset.C
index ea64089128381d69bf76af12c7755a3432513bdc..cc8804f0ed7544f13d40a28ec6949ead1b8122ca 100644 (file)
@@ -7,6 +7,8 @@
 #include "math_support.h"
 #include "Lsstream.h"
 
+using std::auto_ptr;
+
 
 MathAMSArrayInset::MathAMSArrayInset(string const & name, int m, int n)
        : MathGridInset(m, n), name_(name)
@@ -18,9 +20,9 @@ MathAMSArrayInset::MathAMSArrayInset(string const & name)
 {}
 
 
-MathInset * MathAMSArrayInset::clone() const
+auto_ptr<InsetBase> MathAMSArrayInset::clone() const
 {
-       return new MathAMSArrayInset(*this);
+       return auto_ptr<InsetBase>(new MathAMSArrayInset(*this));
 }