namespace lyx {
-using std::auto_ptr;
-using std::vector;
-
-
InsetMathString::InsetMathString(docstring const & s)
: str_(s)
{}
-auto_ptr<InsetBase> InsetMathString::doClone() const
+Inset * InsetMathString::clone() const
{
- return auto_ptr<InsetBase>(new InsetMathString(*this));
+ return new InsetMathString(*this);
}
-bool InsetMathString::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathString::metrics(MetricsInfo & mi, Dimension & dim) const
{
mathed_string_dim(mi.base.font, str_, dim);
- if (dim_ == dim)
- return false;
- dim_ = dim;
- return true;
}