]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDiff.cpp
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathDiff.cpp
index 3ec1160bdf5bace93eebad3f8da2caa760e53282..f4d544bbb6250ed313c4734f691473221d298604 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "InsetMathDiff.h"
 #include "MathData.h"
 #include "MathStream.h"
-#include "debug.h"
 
+#include "support/debug.h"
 
-namespace lyx {
-
-using std::auto_ptr;
-using std::endl;
 
+namespace lyx {
 
 InsetMathDiff::InsetMathDiff()
        : InsetMathNest(1)
 {}
 
 
-auto_ptr<Inset> InsetMathDiff::doClone() const
+Inset * InsetMathDiff::clone() const
 {
-       return auto_ptr<Inset>(new InsetMathDiff(*this));
+       return new InsetMathDiff(*this);
 }
 
 
@@ -48,16 +45,15 @@ void InsetMathDiff::normalize(NormalStream & os) const
 }
 
 
-bool InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
+void InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
 {
-       lyxerr << "should not happen" << endl;
-       return true;
+       LYXERR0("should not happen");
 }
 
 
 void InsetMathDiff::draw(PainterInfo &, int, int) const
 {
-       lyxerr << "should not happen" << endl;
+       LYXERR0("should not happen");
 }
 
 
@@ -113,7 +109,7 @@ void InsetMathDiff::mathmlize(MathStream & os) const
 
 void InsetMathDiff::write(WriteStream &) const
 {
-       lyxerr << "should not happen" << endl;
+       LYXERR0("should not happen");
 }