]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDiff.cpp
Add comment.
[lyx.git] / src / mathed / InsetMathDiff.cpp
index 34ee4d17a7a6204f16911d0ca0d3d96152ab2bde..1e990d7ffb15a4a05a83054335ddcb79bed97304 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::endl;
 
+namespace lyx {
 
-InsetMathDiff::InsetMathDiff()
-       : InsetMathNest(1)
+InsetMathDiff::InsetMathDiff(Buffer * buf)
+       : InsetMathNest(buf, 1)
 {}
 
 
@@ -49,13 +47,13 @@ void InsetMathDiff::normalize(NormalStream & os) const
 
 void InsetMathDiff::metrics(MetricsInfo &, Dimension &) const
 {
-       lyxerr << "should not happen" << endl;
+       LYXERR0("should not happen");
 }
 
 
 void InsetMathDiff::draw(PainterInfo &, int, int) const
 {
-       lyxerr << "should not happen" << endl;
+       LYXERR0("should not happen");
 }
 
 
@@ -111,7 +109,7 @@ void InsetMathDiff::mathmlize(MathStream & os) const
 
 void InsetMathDiff::write(WriteStream &) const
 {
-       lyxerr << "should not happen" << endl;
+       LYXERR0("should not happen");
 }