]> git.lyx.org Git - features.git/commitdiff
nullptr
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 10 Jan 2021 00:02:19 +0000 (19:02 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 10 Jan 2021 00:02:19 +0000 (19:02 -0500)
src/insets/Inset.cpp

index 45eae990c00ec478da2ad595c4947c841cb82630..cb10fa52cc65e9a04ffdaa80b6e76fb9c24a74a6 100644 (file)
@@ -317,7 +317,7 @@ docstring insetDisplayName(InsetCode c)
 
 void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
 {
 
 void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
 {
-       if (buffer_ == 0) {
+       if (buffer_ == nullptr) {
                lyxerr << "Unassigned buffer_ member in Inset::dispatch()" << std::endl;
                lyxerr << "LyX Code: " << lyxCode() << " name: "
                       << insetName(lyxCode()) << std::endl;
                lyxerr << "Unassigned buffer_ member in Inset::dispatch()" << std::endl;
                lyxerr << "LyX Code: " << lyxCode() << " name: "
                       << insetName(lyxCode()) << std::endl;
@@ -632,8 +632,8 @@ Buffer const * Inset::updateFrontend() const
        // are in the CutAndPaste stack. See InsetGraphics, RenderGraphics and
        // RenderPreview.
        if (!buffer_)
        // are in the CutAndPaste stack. See InsetGraphics, RenderGraphics and
        // RenderPreview.
        if (!buffer_)
-               return 0;
-       return theApp() ? theApp()->updateInset(this) : 0;
+               return nullptr;
+       return theApp() ? theApp()->updateInset(this) : nullptr;
 }
 
 
 }