]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_arrayinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_arrayinset.C
index 9ccd154006b4e1177802a059f081d0d4a45b22ef..8c3629ccadc2bc9732c61e19b383b9483256adcf 100644 (file)
@@ -14,6 +14,7 @@ using std::vector;
 using std::istringstream;
 using std::getline;
 using std::istream_iterator;
+using std::auto_ptr;
 
 
 MathArrayInset::MathArrayInset(string const & name, int m, int n)
@@ -57,18 +58,18 @@ MathArrayInset::MathArrayInset(string const & name, string const & str)
 }
 
 
-MathInset * MathArrayInset::clone() const
+auto_ptr<InsetBase> MathArrayInset::clone() const
 {
-       return new MathArrayInset(*this);
+       return auto_ptr<InsetBase>(new MathArrayInset(*this));
 }
 
 
-Dimension MathArrayInset::metrics(MetricsInfo & mi) const
+void MathArrayInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        ArrayChanger dummy(mi.base);
        MathGridInset::metrics(mi);
        metricsMarkers2();
-       return dim_;
+       dim = dim_;
 }