#include "math_streamstr.h"
#include "support/LOstream.h"
+using std::auto_ptr;
+
MathEnvInset::MathEnvInset(string const & name)
: MathNestInset(1), name_(name)
{}
-MathInset * MathEnvInset::clone() const
+auto_ptr<InsetBase> MathEnvInset::clone() const
{
- return new MathEnvInset(*this);
+ return auto_ptr<InsetBase>(new MathEnvInset(*this));
}