[LyX/master] Add some documentation

Juergen Spitzmueller spitz at lyx.org
Tue Dec 15 08:22:37 UTC 2020


commit 9bf3a5a778986a5cf17a2e7987f43d15c41a053c
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Tue Dec 15 09:52:52 2020 +0100

    Add some documentation
---
 src/frontends/qt/GuiSpellchecker.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiSpellchecker.cpp b/src/frontends/qt/GuiSpellchecker.cpp
index 99bd3c5..de25c7a 100644
--- a/src/frontends/qt/GuiSpellchecker.cpp
+++ b/src/frontends/qt/GuiSpellchecker.cpp
@@ -87,7 +87,7 @@ struct SpellcheckerWidget::Private
 		return false;
 	}
 	void canCheck() { incheck_ = false; }
-	/// check for wrap around
+	/// set if checking already started from the beginning
 	void wrapAround(bool flag) {
 		wrap_around_ = flag;
 		if (flag) {
@@ -103,7 +103,9 @@ struct SpellcheckerWidget::Private
 	DocIterator const cursor() const;
 	/// status checks
 	bool isCurrentBuffer(DocIterator const & cursor) const;
+	/// return true if we ended a complete cycle
 	bool isWrapAround(DocIterator const & cursor) const;
+	/// returns true if we did already start from the beginning
 	bool isWrapAround() const { return wrap_around_; }
 	bool atLastPos(DocIterator const & cursor) const;
 	/// validate the cached doc iterators
@@ -129,7 +131,7 @@ struct SpellcheckerWidget::Private
 	DocIterator end_;
 	///
 	bool incheck_;
-	///
+	/// Did we already start from the beginning?
 	bool wrap_around_;
 };
 


More information about the lyx-cvs mailing list