From: Richard Kimberly Heck Date: Tue, 17 Nov 2020 07:30:04 +0000 (-0500) Subject: Fix warning X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=21474387841f9a3bed6f388ee02ed85cfe3041c3;p=features.git Fix warning --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index fafa0d8100..efbf7f7247 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -3669,7 +3669,7 @@ MacroData const * Buffer::Impl::getBufferMacro(docstring const & name, while (true) { // do we know something better (i.e. later) already? - if (it->first < bestPos ) + if (it->first < bestPos) break; // scope ends behind pos? diff --git a/src/mathed/MacroTable.cpp b/src/mathed/MacroTable.cpp index e6daac67e0..8cf9273c54 100644 --- a/src/mathed/MacroTable.cpp +++ b/src/mathed/MacroTable.cpp @@ -179,7 +179,7 @@ void MacroData::updateData() 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; }