[LyX/master] Fix nullptr warning

Juergen Spitzmueller spitz at lyx.org
Tue Dec 15 07:06:04 UTC 2020


commit 47de618de82ca7dd2164efc210bc4821ebfb6f94
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Tue Dec 15 08:36:17 2020 +0100

    Fix nullptr warning
---
 src/frontends/qt/GuiSpellchecker.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt/GuiSpellchecker.cpp b/src/frontends/qt/GuiSpellchecker.cpp
index 009c124..fe9471c 100644
--- a/src/frontends/qt/GuiSpellchecker.cpp
+++ b/src/frontends/qt/GuiSpellchecker.cpp
@@ -97,7 +97,7 @@ struct SpellcheckerWidget::Private
 	/// test for existing association with a document buffer
 	/// and test for already active check
 	bool disabled() {
-		return gv_->documentBufferView() == 0 || inCheck();
+		return gv_->documentBufferView() == nullptr || inCheck();
 	}
 	/// the cursor position of the buffer view
 	DocIterator const cursor() const;
@@ -407,7 +407,7 @@ void SpellcheckerWidget::on_languageCO_activated(int index)
 bool SpellcheckerWidget::initialiseParams(std::string const &)
 {
 	BufferView * bv = d->gv_->documentBufferView();
-	if (bv == 0)
+	if (bv == nullptr)
 		return false;
 	std::set<Language const *> langs =
 		bv->buffer().masterBuffer()->getLanguages();
@@ -629,7 +629,7 @@ GuiSpellchecker::GuiSpellchecker(GuiView & parent,
 
 GuiSpellchecker::~GuiSpellchecker()
 {
-	setFocusProxy(0);
+	setFocusProxy(nullptr);
 	delete widget_;
 }
 


More information about the lyx-cvs mailing list