X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDiff.cpp;h=1e990d7ffb15a4a05a83054335ddcb79bed97304;hb=48b09463dd23e64fab605553a91542198e8361e4;hp=607e43e010e989559e15b41a6b784b4db92c4103;hpb=ed858d73e57ce7aa89e38c1bc4d799362edb0227;p=lyx.git diff --git a/src/mathed/InsetMathDiff.cpp b/src/mathed/InsetMathDiff.cpp index 607e43e010..1e990d7ffb 100644 --- a/src/mathed/InsetMathDiff.cpp +++ b/src/mathed/InsetMathDiff.cpp @@ -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. */ @@ -13,16 +13,14 @@ #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) {} @@ -47,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"); } @@ -112,7 +109,7 @@ void InsetMathDiff::mathmlize(MathStream & os) const void InsetMathDiff::write(WriteStream &) const { - lyxerr << "should not happen" << endl; + LYXERR0("should not happen"); }