]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_scriptinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_scriptinset.C
index 4e4d9bfad2576b164da5ad12d25eb022f6e6788f..bd054206ae745b1b3486979b1794e925812581a4 100644 (file)
@@ -1,3 +1,5 @@
+#include <config.h>
+
 #include "math_scriptinset.h"
 #include "math_support.h"
 #include "math_symbolinset.h"
@@ -9,6 +11,8 @@
 using namespace lyx::support;
 
 using std::max;
+using std::auto_ptr;
+using std::endl;
 
 
 MathScriptInset::MathScriptInset()
@@ -37,9 +41,9 @@ MathScriptInset::MathScriptInset(MathAtom const & at, bool up)
 
 
 
-InsetBase * MathScriptInset::clone() const
+auto_ptr<InsetBase> MathScriptInset::clone() const
 {
-       return new MathScriptInset(*this);
+       return auto_ptr<InsetBase>(new MathScriptInset(*this));
 }
 
 
@@ -358,7 +362,8 @@ void MathScriptInset::write(WriteStream & os) const
                //}
        } else {
                if (os.firstitem())
-                       lyxerr[Debug::MATHED] << "suppressing {} when writing\n";
+                       lyxerr[Debug::MATHED] << "suppressing {} when writing"
+                                             << endl;
                else
                        os << "{}";
        }