]> git.lyx.org Git - features.git/commitdiff
Fix warnings
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 28 Feb 2020 05:10:23 +0000 (00:10 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 28 Feb 2020 05:10:23 +0000 (00:10 -0500)
src/frontends/qt/Dialog.cpp

index 2369738c5c5b3b445bc3f29a32dd1b2cd88444e1..4dbc2d43d628bb3ef898333d3a844230bef56dec 100644 (file)
@@ -81,7 +81,7 @@ void Dialog::disconnect() const
 
 bool Dialog::isBufferAvailable() const
 {
-       return lyxview_.currentBufferView() != 0;
+       return lyxview_.currentBufferView() != nullptr;
 }
 
 
@@ -227,7 +227,7 @@ Inset const * Dialog::inset(InsetCode code) const
        // Check if next is of the type we look for
        if (next)
                if (next->lyxCode() != code)
-                       next = 0;
+                       next = nullptr;
        if (ins) {
                // prefer next if it is of the requested type (bug 8716)
                if (next)