]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diffinset.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_diffinset.C
index a5d2ef4bcee45b97e9014195cc9e91e1850886bd..9080dc8138f9a198b69c3a76ad96800a424679a5 100644 (file)
@@ -1,3 +1,4 @@
+#include <config.h>
 
 #include "math_diffinset.h"
 #include "math_support.h"
@@ -5,15 +6,18 @@
 #include "math_symbolinset.h"
 #include "debug.h"
 
+using std::auto_ptr;
+using std::endl;
+
 
 MathDiffInset::MathDiffInset()
        : MathNestInset(1)
 {}
 
 
-InsetBase * MathDiffInset::clone() const
+auto_ptr<InsetBase> MathDiffInset::clone() const
 {
-       return new MathDiffInset(*this);
+       return auto_ptr<InsetBase>(new MathDiffInset(*this));
 }
 
 
@@ -34,13 +38,13 @@ void MathDiffInset::normalize(NormalStream & os) const
 
 void MathDiffInset::metrics(MetricsInfo &, Dimension &) const
 {
-       lyxerr << "should not happen\n";
+       lyxerr << "should not happen" << endl;
 }
 
 
 void MathDiffInset::draw(PainterInfo &, int, int) const
 {
-       lyxerr << "should not happen\n";
+       lyxerr << "should not happen" << endl;
 }
 
 
@@ -82,5 +86,5 @@ void MathDiffInset::mathmlize(MathMLStream & os) const
 
 void MathDiffInset::write(WriteStream &) const
 {
-       lyxerr << "should not happen\n";
+       lyxerr << "should not happen" << endl;
 }