From 3499f18091953fdfeb0e505d3b2cc9f5e3bca58a Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 30 May 2026 23:15:23 +0200 Subject: [PATCH] Fix warning for unused but set variable in CInput Delete not used index variable i in updateText method. Signed-off-by: Simon --- source/gui/ObjectTypes/CInput.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/gui/ObjectTypes/CInput.cpp b/source/gui/ObjectTypes/CInput.cpp index 662f31ecb2..b619479a69 100644 --- a/source/gui/ObjectTypes/CInput.cpp +++ b/source/gui/ObjectTypes/CInput.cpp @@ -1602,10 +1602,9 @@ void CInput::UpdateText(int from, int to_before, int to_after) // actually remove the entire lines they are on, it'll all have // to be redone. And when going along, we'll delete a row at a time // when continuing to see how much more after 'to' we need to remake. - int i = 0; for (std::list::iterator it = m_CharacterPositions.begin(); it != m_CharacterPositions.end(); - ++it, ++i) + ++it) { if (!destroy_row_from_used && it->m_ListStart > from) {