[LyX/master] Rename another shadowing unsigned
Juergen Spitzmueller
spitz at lyx.org
Fri Feb 20 14:57:51 UTC 2026
commit 0111d1b5d2ba79e0d8fc7ed8fb18d8a1d8ce0f8c
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Feb 20 15:55:07 2026 +0100
Rename another shadowing unsigned
---
src/insets/InsetIndex.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index e0348be87a..0df95366e4 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -1775,10 +1775,10 @@ void outputIndexPage(XMLStream & xs, const IndexNode* root_node, unsigned depth
xs << XMLStream::ESCAPE_NONE << " — "; // Em dash, i.e. long (---).
unsigned entry_number = 1;
- auto writeLinkToEntry = [&xs](const IndexEntry &entry, unsigned entry_number) {
+ auto writeLinkToEntry = [&xs](const IndexEntry &entry, unsigned entry_num) {
std::string const link_attr = "href='#" + entry.inset()->paragraphs()[0].magicLabel() + "'";
xs << xml::StartTag("a", link_attr);
- xs << from_ascii(std::to_string(entry_number));
+ xs << from_ascii(std::to_string(entry_num));
xs << xml::EndTag("a");
};
More information about the lyx-cvs
mailing list