From d9082639080b9de993742bd352f92e5183058cf5 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 9 Jan 2021 19:02:19 -0500 Subject: [PATCH] nullptr --- src/insets/Inset.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index 45eae990c0..cb10fa52cc 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -317,7 +317,7 @@ docstring insetDisplayName(InsetCode c) 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; @@ -632,8 +632,8 @@ Buffer const * Inset::updateFrontend() const // 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; }