]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_lefteqninset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_lefteqninset.C
index d560e1237a9d74598aa20a2dd50fda3c31ce949c..d53cefbf0e94bd134e53e756c01f2a7cb8032bcc 100644 (file)
@@ -1,28 +1,29 @@
-
 #include "math_lefteqninset.h"
 #include "math_support.h"
 #include "support/LOstream.h"
 
+using std::auto_ptr;
+
 
 MathLefteqnInset::MathLefteqnInset()
        : MathNestInset(1)
 {}
 
 
-MathInset * MathLefteqnInset::clone() const
+auto_ptr<InsetBase> MathLefteqnInset::clone() const
 {
-       return new MathLefteqnInset(*this);
+       return auto_ptr<InsetBase>(new MathLefteqnInset(*this));
 }
 
 
-Dimension MathLefteqnInset::metrics(MetricsInfo & mi) const
+void MathLefteqnInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi);
        dim_.asc = cell(0).ascent() + 2;
        dim_.des = cell(0).descent() + 2;
        dim_.wid = 4;
        metricsMarkers();
-       return dim_;
+       dim = dim_;
 }