From 21474387841f9a3bed6f388ee02ed85cfe3041c3 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Tue, 17 Nov 2020 02:30:04 -0500 Subject: [PATCH] Fix warning --- src/Buffer.cpp | 2 +- src/mathed/MacroTable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5