]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sizeinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_sizeinset.C
index 409993b270c61db41417b7603b938cebab20bd44..2d883edce15f00402aa98abfe11200aad088eb4e 100644 (file)
@@ -7,26 +7,27 @@
 #include "math_support.h"
 #include "support/LOstream.h"
 
-
 using std::atoi;
+using std::auto_ptr;
+
 
 MathSizeInset::MathSizeInset(latexkeys const * l)
        : MathNestInset(1), key_(l), style_(Styles(atoi(l->extra.c_str())))
 {}
 
 
-MathInset * MathSizeInset::clone() const
+auto_ptr<InsetBase> MathSizeInset::clone() const
 {
-       return new MathSizeInset(*this);
+       return auto_ptr<InsetBase>(new MathSizeInset(*this));
 }
 
 
-Dimension MathSizeInset::metrics(MetricsInfo & mi) const
+void MathSizeInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        StyleChanger dummy(mi.base, style_);
        cell(0).metrics(mi, dim_);
        metricsMarkers();
-       return dim_;
+       dim = dim_;
 }