namespace lyx {
-using std::auto_ptr;
-
-
InsetMathFont::InsetMathFont(latexkeys const * key)
: InsetMathNest(1), key_(key)
{}
-auto_ptr<InsetBase> InsetMathFont::doClone() const
+Inset * InsetMathFont::clone() const
{
- return auto_ptr<InsetBase>(new InsetMathFont(*this));
+ return new InsetMathFont(*this);
}
}
-bool InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const
{
FontSetChanger dummy(mi.base, key_->name);
cell(0).metrics(mi, dim);
metricsMarkers(dim);
- if (dim_ == dim)
- return false;
dim_ = dim;
- return true;
}