[LyX/master] rename overshadowing ints
Juergen Spitzmueller
spitz at lyx.org
Fri Feb 20 14:57:50 UTC 2026
commit 2215171cf405258efde6b35794ef9d92af91cf2e
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Feb 20 15:49:52 2026 +0100
rename overshadowing ints
---
src/Paragraph.cpp | 2 +-
src/frontends/qt/GuiInfo.cpp | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 11b9e28237..77a52301fd 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -1212,7 +1212,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
os << "\\end{" << close_env << "}";
if (close_brace > 0) {
- for (unsigned i = 0; i < close_brace; ++i)
+ for (unsigned j = 0; j < close_brace; ++j)
os << '}';
if (disp_env)
os << safebreakln;
diff --git a/src/frontends/qt/GuiInfo.cpp b/src/frontends/qt/GuiInfo.cpp
index f8a1d6e86e..44f7393378 100644
--- a/src/frontends/qt/GuiInfo.cpp
+++ b/src/frontends/qt/GuiInfo.cpp
@@ -260,11 +260,11 @@ void GuiInfo::paramsToDialog(Inset const * inset)
updateArguments(i);
int argindex = -1;
int customindex = 0;
- for (int i = 0 ; i < infoLW->count() ; ++i) {
- if (infoLW->item(i)->data(Qt::UserRole).toString() == name)
- argindex = i;
- else if (infoLW->item(i)->data(Qt::UserRole).toString() == "custom")
- customindex = i;
+ for (int j = 0 ; j < infoLW->count() ; ++j) {
+ if (infoLW->item(j)->data(Qt::UserRole).toString() == name)
+ argindex = j;
+ else if (infoLW->item(j)->data(Qt::UserRole).toString() == "custom")
+ customindex = j;
}
if (argindex != -1)
infoLW->setCurrentRow(argindex);
More information about the lyx-cvs
mailing list