]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_sqrtinset.C
index 2969c6b21dede4b42722fe8cc64c82e315dc86e4..9a3d3c6f72c476292f09c5ad12c156c522087940 100644 (file)
@@ -1,30 +1,31 @@
-
 #include "math_sqrtinset.h"
 #include "math_mathmlstream.h"
 #include "LColor.h"
 #include "frontends/Painter.h"
 #include "textpainter.h"
 
+using std::auto_ptr;
+
 
 MathSqrtInset::MathSqrtInset()
        : MathNestInset(1)
 {}
 
 
-MathInset * MathSqrtInset::clone() const
+auto_ptr<InsetBase> MathSqrtInset::clone() const
 {
-       return new MathSqrtInset(*this);
+       return auto_ptr<InsetBase>(new MathSqrtInset(*this));
 }
 
 
-Dimension MathSqrtInset::metrics(MetricsInfo & mi) const
+void MathSqrtInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim_);
        dim_.asc += 4;
        dim_.des += 2;
        dim_.wid += 12;
        metricsMarkers(1);
-       return dim_;
+       dim = dim_;
 }