]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_xyarrowinset.C
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / mathed / math_xyarrowinset.C
index 26b569cd80b491c97ed44d35269f76a25d42ba2f..dab2b5852e927fd4b324658777862f4551b045c8 100644 (file)
@@ -27,9 +27,9 @@ MathXYArrowInset::MathXYArrowInset()
 {}
 
 
-InsetBase * MathXYArrowInset::clone() const
+auto_ptr<InsetBase> MathXYArrowInset::clone() const
 {
-       return new MathXYArrowInset(*this);
+       return auto_ptr<InsetBase>(new MathXYArrowInset(*this));
 }
 
 
@@ -61,7 +61,7 @@ MathArray const & MathXYArrowInset::targetCell() const
                       << "target: n: " << n << " out of range" << endl;
                n = 0;
        }
-  return p->cell(n);
+       return p->cell(n);
 #else
        static MathArray dummy;
        return dummy;
@@ -72,7 +72,7 @@ MathArray const & MathXYArrowInset::targetCell() const
 MathArray const & MathXYArrowInset::sourceCell() const
 {
 #if 0
-  return targetMatrix()->cell(mi_.idx);
+       return targetMatrix()->cell(mi_.idx);
 #else
        static MathArray dummy;
        return dummy;