]> 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 50e80a2bff5ebc7a306311f7229ea88782342516..dab2b5852e927fd4b324658777862f4551b045c8 100644 (file)
@@ -1,5 +1,14 @@
-#include <config.h>
+/**
+ * \file math_xyarrowinset.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
+#include <config.h>
 
 #include "math_xyarrowinset.h"
 #include "math_xymatrixinset.h"
@@ -18,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));
 }
 
 
@@ -52,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;
@@ -63,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;