[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX/master] InsetIndex: add a few comments.
From:       Thibaut Cuvelier <tcuvelier () lyx ! org>
Date:       2022-10-31 17:40:11
Message-ID: 20221031174011.759B22800DD () lyx ! lyx ! org
[Download RAW message or body]

commit b5418f0d29a022ff13e6ae6f9402dbbfd8b826bf
Author: Thibaut Cuvelier <tcuvelier@lyx.org>
Date:   Mon Apr 25 03:14:24 2022 +0200

    InsetIndex: add a few comments.
---
 src/insets/InsetIndex.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index 72204c0..9f8471e 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -1241,6 +1241,7 @@ struct IndexEntry
 {
 	IndexEntry() = default;
 
+	/// Builds an entry for the index with the given LaTeX index entry `s` and a \
pointer to the index inset `d`.  IndexEntry(docstring const & s, DocIterator const & \
d, bool for_output = false)  : dit_(d)
 	{
@@ -1250,6 +1251,7 @@ struct IndexEntry
 		parseItem(subsub_, for_output);
 	}
 
+	/// Comparison between two entries only based on their LaTeX representation.
 	bool equal(IndexEntry const & rhs) const
 	{
 		return main_ == rhs.main_ && sub_ == rhs.sub_ && subsub_ == rhs.subsub_;
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic