]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.C
Ensure all #warning statements are wrapped by #ifdef WITH_WARNINGS.
[lyx.git] / src / mathed / math_stringinset.C
index 6899b3108934cd26b273c6c47f39ba0bb5d45bbc..dfb664c26c68b5f6a588d14c438fb730969c8996 100644 (file)
@@ -1,11 +1,23 @@
-#include <config.h>
+/**
+ * \file math_stringinset.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_stringinset.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 #include "math_support.h"
-#include "debug.h"
+
+
+using std::string;
+using std::auto_ptr;
 
 
 MathStringInset::MathStringInset(string const & s)
@@ -13,9 +25,9 @@ MathStringInset::MathStringInset(string const & s)
 {}
 
 
-InsetBase * MathStringInset::clone() const
+auto_ptr<InsetBase> MathStringInset::clone() const
 {
-       return new MathStringInset(*this);
+       return auto_ptr<InsetBase>(new MathStringInset(*this));
 }