]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_tabularinset.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_tabularinset.C
index 7f506bc040754acac176109121a70d01cdafb8cd..e3170770d4d734cad22d333a7f8346f47704c75c 100644 (file)
@@ -14,6 +14,7 @@ using std::vector;
 using std::istringstream;
 using std::getline;
 using std::istream_iterator;
+using std::auto_ptr;
 
 
 MathTabularInset::MathTabularInset(string const & name, int m, int n)
@@ -33,13 +34,13 @@ MathTabularInset::MathTabularInset(string const & name, char valign,
 {}
 
 
-MathInset * MathTabularInset::clone() const
+auto_ptr<InsetBase> MathTabularInset::clone() const
 {
-       return new MathTabularInset(*this);
+       return auto_ptr<InsetBase>(new MathTabularInset(*this));
 }
 
 
-void MathTabularInset::metrics(MetricsInfo & mi, Dimension & dim) const
+void MathTabularInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const
 {
        FontSetChanger dummy(mi.base, "textnormal");
        return MathGridInset::metrics(mi);