From 1064ff801476e4ace4ca0d8997e877662f0b6e1f Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Tue, 17 Nov 2020 02:33:41 -0500 Subject: [PATCH] Fix warnings --- src/mathed/MacroTable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mathed/MacroTable.cpp b/src/mathed/MacroTable.cpp index 8cf9273c54..cfabd748d6 100644 --- a/src/mathed/MacroTable.cpp +++ b/src/mathed/MacroTable.cpp @@ -139,7 +139,7 @@ docstring const MacroData::xmlname() const char const * MacroData::MathMLtype() const { - return sym_ ? sym_->MathMLtype() : 0; + return sym_ ? sym_->MathMLtype() : nullptr; } @@ -195,7 +195,7 @@ int MacroData::write(odocstream & os, bool overwriteRedefinition) const // find macro template Inset * inset = pos_.nextInset(); - if (inset == 0 || inset->lyxCode() != MATHMACRO_CODE) { + if (!inset || inset->lyxCode() != MATHMACRO_CODE) { lyxerr << "BUG: No macro template found by MacroData" << endl; return 0; } @@ -225,7 +225,7 @@ GlobalMacros & GlobalMacros::get() MacroData const * GlobalMacros::getMacro(docstring const & name) const { const_iterator it = find(name); - return it == end() ? 0 : &it->second; + return it == end() ? nullptr : &it->second; } -- 2.39.5