X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMacroTable.cpp;h=efb111f84f4741ba3c23d2e0d3a8cebeb5875b90;hb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;hp=b4dfb13b15a36b2e51464398021a881723bdfaa4;hpb=98787bbec6760afbb4eeafe7c7b3e112b8d15f4d;p=features.git diff --git a/src/mathed/MacroTable.cpp b/src/mathed/MacroTable.cpp index b4dfb13b15..efb111f84f 100644 --- a/src/mathed/MacroTable.cpp +++ b/src/mathed/MacroTable.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. */ @@ -25,7 +25,7 @@ #include "support/debug.h" -#include +#include "support/lassert.h" #include @@ -107,7 +107,7 @@ vector const & MacroData::defaults() const void MacroData::unlock() const { --lockCount_; - BOOST_ASSERT(lockCount_ >= 0); + LASSERT(lockCount_ >= 0, /**/); } @@ -133,7 +133,7 @@ void MacroData::updateData() const if (queried_) return; - BOOST_ASSERT(buffer_ != 0); + LASSERT(buffer_ != 0, /**/); // Try to fix position DocIterator. Should not do anything in theory. pos_.fixIfBroken(); @@ -162,9 +162,9 @@ void MacroData::write(odocstream & os, bool overwriteRedefinition) const } // output template - MathMacroTemplate const & tmpl - = static_cast(*inset); - WriteStream wi(os, false, true); + MathMacroTemplate const & tmpl = + static_cast(*inset); + WriteStream wi(os, false, true, false); tmpl.write(wi, overwriteRedefinition); }