]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_numberinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_numberinset.C
index d53409630d9a807439934cbca550e4948e22d47f..249221153ef3b79ac9ff1395f57a47240feab776 100644 (file)
@@ -7,23 +7,23 @@
 #include "math_support.h"
 #include "debug.h"
 
+using std::auto_ptr;
+
 
 MathNumberInset::MathNumberInset(string const & s)
        : str_(s)
 {}
 
 
-MathInset * MathNumberInset::clone() const
+auto_ptr<InsetBase> MathNumberInset::clone() const
 {
-       return new MathNumberInset(*this);
+       return auto_ptr<InsetBase>(new MathNumberInset(*this));
 }
 
 
-Dimension MathNumberInset::metrics(MetricsInfo & mi) const
+void MathNumberInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       Dimension dim;
        mathed_string_dim(mi.base.font, str_, dim);
-       return dim;
 }