{
// If we are editing a macro, we cannot update it immediately,
// otherwise wrong undo steps will be recorded (bug 6208).
- InsetMath const * inmath = cur ? cur->inset().asInsetMath() : 0;
- InsetMathMacro const * inmacro = inmath ? inmath->asMacro() : 0;
+ InsetMath const * inmath = cur ? cur->inset().asInsetMath() : nullptr;
+ InsetMathMacro const * inmacro = inmath ? inmath->asMacro() : nullptr;
docstring const edited_name = inmacro ? inmacro->name() : docstring();
// go over the array and look for macros
size_t j = 0;
// We do not want to use macroInset below, the insert() call in
// the loop will invalidate it.
- macroInset = 0;
+ macroInset = nullptr;
for (; j < detachedArgs.size() && j < optionals; ++j) {
// another non-empty parameter follows?
bool canDropEmptyOptional = j >= lastNonEmptyOptional;
MathData & arg = detachedArgs[j];
// look for "]", i.e. put a brace around?
- InsetMathBrace * brace = 0;
+ InsetMathBrace * brace = nullptr;
for (size_t q = 0; q < arg.size(); ++q) {
if (arg[q]->getChar() == ']') {
// put brace
size_t & pos, MathAtom & scriptToPutAround,
const pos_type macroPos, const int thisPos, const int thisSlice)
{
- Buffer * buf = cur ? cur->buffer() : 0;
+ Buffer * buf = cur ? cur->buffer() : nullptr;
// insert optional arguments?
while (params.size() < numOptionalParams
&& pos < size()