]> git.lyx.org Git - features.git/commitdiff
Fix warning
authorRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 17 Nov 2020 07:30:04 +0000 (02:30 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 17 Nov 2020 07:30:04 +0000 (02:30 -0500)
src/Buffer.cpp
src/mathed/MacroTable.cpp

index fafa0d81001a5a7ed251807520b94ba9d7fc0078..efbf7f7247e651edf62445a6b9a5c7bc5866b8a9 100644 (file)
@@ -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?
index e6daac67e0069b284a68d734a3aba68147e1bca2..8cf9273c54e89a75458152c335ae176d8fb68236 100644 (file)
@@ -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;
        }