using std::max;
+using std::auto_ptr;
namespace {
}
-MathInset * MathDelimInset::clone() const
+auto_ptr<InsetBase> MathDelimInset::clone() const
{
- return new MathDelimInset(*this);
+ return auto_ptr<InsetBase>(new MathDelimInset(*this));
}
}
-Dimension MathDelimInset::metrics(MetricsInfo & mi) const
+void MathDelimInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
cell(0).metrics(mi);
Dimension t;
dim_.wid = cell(0).width() + 2 * dw_ + 8;
dim_.asc = max(a0, d0) + h0;
dim_.des = max(a0, d0) - h0;
- return dim_;
+ dim = dim_;
}