]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_envinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_envinset.C
index 42b9dac39ee2d226e25c1359f474b0f7f3062a89..a7e2737be4390db56d926075f1fa079c6da710a0 100644 (file)
@@ -5,15 +5,17 @@
 #include "math_streamstr.h"
 #include "support/LOstream.h"
 
+using std::auto_ptr;
+
 
 MathEnvInset::MathEnvInset(string const & name)
        : MathNestInset(1), name_(name)
 {}
 
 
-InsetBase * MathEnvInset::clone() const
+auto_ptr<InsetBase> MathEnvInset::clone() const
 {
-       return new MathEnvInset(*this);
+       return auto_ptr<InsetBase>(new MathEnvInset(*this));
 }