]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_biginset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_biginset.C
index 0824bfbb661e2f39252861b6d2be1aa574c5215a..95df7ff00e92768ed6962de1824fe715ae980bdc 100644 (file)
@@ -6,15 +6,17 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 
+using std::auto_ptr;
+
 
 MathBigInset::MathBigInset(string const & name, string const & delim)
        : name_(name), delim_(delim)
 {}
 
 
-MathInset * MathBigInset::clone() const
+auto_ptr<InsetBase> MathBigInset::clone() const
 {
-       return new MathBigInset(*this);
+       return auto_ptr<InsetBase>(new MathBigInset(*this));
 }
 
 
@@ -35,14 +37,14 @@ double MathBigInset::increase() const
 }
 
 
-Dimension MathBigInset::metrics(MetricsInfo & mi) const
+void MathBigInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        double const h = mathed_char_ascent(mi.base.font, 'I');
        double const f = increase();
        dim_.wid = 6;
        dim_.asc = int(h + f * h);
        dim_.des = int(f * h);
-       return dim_;
+       dim = dim_;
 }