using std::endl;
using std::string;
-using std::auto_ptr;
using std::ostream;
}
-bool InsetQuotes::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetQuotes::metrics(MetricsInfo & mi, Dimension & dim) const
{
Font & font = mi.base.font;
frontend::FontMetrics const & fm =
else
dim.wid += fm.width(',');
}
- bool const changed = dim_ != dim;
- dim_ = dim;
- return changed;
}
} else {
pi.pain.text(x, y, text, pi.base.font);
}
- setPosCache(pi, x, y);
}
}
-auto_ptr<Inset> InsetQuotes::doClone() const
+Inset * InsetQuotes::clone() const
{
- return auto_ptr<Inset>(new InsetQuotes(language_, side_, times_));
+ return new InsetQuotes(language_, side_, times_);
}