]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_matrixinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_matrixinset.C
index d515da77d2d3ec526683de3b76a41d07175eff8f..0fd840463e4c4bed28ce8a01c06cbef7702f0cbb 100644 (file)
@@ -1,18 +1,19 @@
-
 #include "math_matrixinset.h"
 #include "math_parser.h"
 #include "math_mathmlstream.h"
 #include "Lsstream.h"
 
+using std::auto_ptr;
+
 
 MathMatrixInset::MathMatrixInset(MathGridInset const & p)
        : MathGridInset(p)
 {}
 
 
-InsetBase * MathMatrixInset::clone() const
+auto_ptr<InsetBase> MathMatrixInset::clone() const
 {
-       return new MathMatrixInset(*this);
+       return auto_ptr<InsetBase>(new MathMatrixInset(*this));
 }