#include "math_support.h"
#include "math_parser.h"
+using std::auto_ptr;
+
MathDotsInset::MathDotsInset(latexkeys const * key)
: key_(key)
{}
-MathInset * MathDotsInset::clone() const
+auto_ptr<InsetBase> MathDotsInset::clone() const
{
- return new MathDotsInset(*this);
+ return auto_ptr<InsetBase>(new MathDotsInset(*this));
}
-Dimension MathDotsInset::metrics(MetricsInfo & mi) const
+void MathDotsInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
mathed_char_dim(mi.base.font, 'M', dim_);
dh_ = 0;
}
else if (key_->name == "ddots")
dh_ = dim_.asc;
- return dim_;
+ dim = dim_;
}