]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathString.cpp
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathString.cpp
index ab4a13704ef65759e1c440ed79146021008999f5..1597d63191705a12dd1209c4b501a8bcc1e3c3de 100644 (file)
 
 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;
 }