]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_ertinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_ertinset.C
index 10f5f595c5a628c34b62f493374299dbdc4dd7c0..3c61de522587da74c65770e8d91b6df1a6dafb2e 100644 (file)
@@ -1,24 +1,25 @@
-
 #include <config.h>
 
 #include "math_ertinset.h"
 #include "math_mathmlstream.h"
 #include "support/LOstream.h"
 
+using std::auto_ptr;
+
 
-MathInset * MathErtInset::clone() const
+auto_ptr<InsetBase> MathErtInset::clone() const
 {
-       return new MathErtInset(*this);
+       return auto_ptr<InsetBase>(new MathErtInset(*this));
 }
 
 
-Dimension MathErtInset::metrics(MetricsInfo & mi) const
+void MathErtInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy(mi.base, "lyxert");
-       MathTextInset::metrics(mi);
+       MathTextInset::metrics(mi, dim_);
        cache_.colinfo_[0].align_ = 'l';
        metricsMarkers();
-       return dim_;
+       dim = dim_;
 }