]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_arrayinset.C
the clone auto_ptr patch
[lyx.git] / src / mathed / math_arrayinset.C
index a8e2cabea99a5990b43a94f18f6e4d4be8bd19b7..8c3629ccadc2bc9732c61e19b383b9483256adcf 100644 (file)
@@ -14,6 +14,7 @@ using std::vector;
 using std::istringstream;
 using std::getline;
 using std::istream_iterator;
+using std::auto_ptr;
 
 
 MathArrayInset::MathArrayInset(string const & name, int m, int n)
@@ -57,9 +58,9 @@ MathArrayInset::MathArrayInset(string const & name, string const & str)
 }
 
 
-InsetBase * MathArrayInset::clone() const
+auto_ptr<InsetBase> MathArrayInset::clone() const
 {
-       return new MathArrayInset(*this);
+       return auto_ptr<InsetBase>(new MathArrayInset(*this));
 }