]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exfuncinset.C
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / math_exfuncinset.C
index 6033db4a6c03199cbb52aab286928481c81f3015..b6e5d609218b059a64d2c0d25dfa6864ff77a73a 100644 (file)
@@ -1,10 +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)
@@ -19,13 +33,13 @@ MathExFuncInset::MathExFuncInset(string const & name, MathArray const & ar)
 }
 
 
-InsetBase * MathExFuncInset::clone() const
+auto_ptr<InsetBase> MathExFuncInset::clone() const
 {
-       return new MathExFuncInset(*this);
+       return auto_ptr<InsetBase>(new MathExFuncInset(*this));
 }
 
 
-void MathExFuncInset::metrics(MetricsInfo & mi, Dimension & dim) const
+void MathExFuncInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const
 {
        mathed_string_dim(mi.base.font, name_, dim_);
 }