-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include "math_splitinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
+using std::auto_ptr;
+
MathSplitInset::MathSplitInset(string const & name)
: MathGridInset(1, 1), name_(name)
}
-MathInset * MathSplitInset::clone() const
+auto_ptr<InsetBase> MathSplitInset::clone() const
{
- return new MathSplitInset(*this);
+ return auto_ptr<InsetBase>(new MathSplitInset(*this));
}
{
if (ws.fragile())
ws << "\\protect";
- ws << "\\begin{" << name_ << "}";
+ ws << "\\begin{" << name_ << '}';
MathGridInset::write(ws);
if (ws.fragile())
ws << "\\protect";