]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exfuncinset.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_exfuncinset.C
index f19f96041ac84914fd9138d772054ccfa57afcfb..1655e7fd958052f7fab5ed9d3b8dcc607e88a0ff 100644 (file)
@@ -1,9 +1,24 @@
+/**
+ * \file math_exfuncinset.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_exfuncinset.h"
-#include "math_support.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
+#include "math_support.h"
+
+
+using std::string;
+using std::auto_ptr;
 
 
 MathExFuncInset::MathExFuncInset(string const & name)
@@ -18,9 +33,9 @@ MathExFuncInset::MathExFuncInset(string const & name, MathArray const & ar)
 }
 
 
-InsetBase * MathExFuncInset::clone() const
+auto_ptr<InsetBase> MathExFuncInset::doClone() const
 {
-       return new MathExFuncInset(*this);
+       return auto_ptr<InsetBase>(new MathExFuncInset(*this));
 }