From 8a8d0c5aab6e503df0f5cdadcf3967de003dbbe2 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Thu, 12 Nov 2020 18:05:40 -0500 Subject: [PATCH] nullptr --- src/mathed/InsetMathMacroTemplate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mathed/InsetMathMacroTemplate.cpp b/src/mathed/InsetMathMacroTemplate.cpp index 84f8b733b4..a445b4dd83 100644 --- a/src/mathed/InsetMathMacroTemplate.cpp +++ b/src/mathed/InsetMathMacroTemplate.cpp @@ -481,7 +481,7 @@ void InsetMathMacroTemplate::updateMacros(DocIterator const & us, DocIterator co void InsetMathMacroTemplate::updateToContext(MacroContext const & mc) { - redefinition_ = mc.get(name()) != 0; + redefinition_ = mc.get(name()) != nullptr; } @@ -564,7 +564,7 @@ void InsetMathMacroTemplate::metrics(MetricsInfo & mi, Dimension & dim) const Changer dummy2 = mi.base.font.changeStyle(TEXT_STYLE); // valid macro? - MacroData const * macro = 0; + MacroData const * macro = nullptr; if (validName()) macro = mi.macrocontext.get(name()); @@ -687,7 +687,7 @@ void InsetMathMacroTemplate::shiftArguments(size_t from, int by) int InsetMathMacroTemplate::maxArgumentInDefinition() const { // We don't have a buffer when pasting from the clipboard (bug 6014). - Buffer const * macro_buffer = isBufferLoaded() ? &buffer() : 0; + Buffer const * macro_buffer = isBufferLoaded() ? &buffer() : nullptr; int maxArg = 0; DocIterator it = doc_iterator_begin(macro_buffer, this); it.idx() = defIdx(); -- 2.39.5