]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_deliminset.C
index 53f10ff11b3301f1db28ab3a65cc3c5dbc6b974e..99a8d53277f9b912c1404a82eece081b6d42e286 100644 (file)
@@ -9,6 +9,7 @@
 
 
 using std::max;
+using std::auto_ptr;
 
 namespace {
 
@@ -52,9 +53,9 @@ MathDelimInset::MathDelimInset
 }
 
 
-MathInset * MathDelimInset::clone() const
+auto_ptr<InsetBase> MathDelimInset::clone() const
 {
-       return new MathDelimInset(*this);
+       return auto_ptr<InsetBase>(new MathDelimInset(*this));
 }
 
 
@@ -72,7 +73,7 @@ void MathDelimInset::normalize(NormalStream & os) const
 }
 
 
-Dimension MathDelimInset::metrics(MetricsInfo & mi) const
+void MathDelimInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi);
        Dimension t;
@@ -88,7 +89,7 @@ Dimension MathDelimInset::metrics(MetricsInfo & mi) const
        dim_.wid = cell(0).width() + 2 * dw_ + 8;
        dim_.asc = max(a0, d0) + h0;
        dim_.des = max(a0, d0) - h0;
-       return dim_;
+       dim = dim_;
 }