Commit eb834ca2 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Give loop variables unique names to avoid shadowing

parent ebf5aa6e
Pipeline #181133 passed with stage
in 3 minutes and 43 seconds
......@@ -1502,8 +1502,8 @@ void Screen::setSelectionEnd(const int x, const int y, const bool trimTrailingWh
_history->getCells(bottomRow, 0, histLineLen, histLine.data());
for (int x = bottomColumn; x < histLineLen; x++) {
if (histLine.at(x).isRealCharacter && (!trimTrailingWhitespace || !QChar(histLine.at(x).character).isSpace())) {
for (int j = bottomColumn; j < histLineLen; j++) {
if (histLine.at(j).isRealCharacter && (!trimTrailingWhitespace || !QChar(histLine.at(j).character).isSpace())) {
beyondLastColumn = false;
}
}
......@@ -1513,8 +1513,8 @@ void Screen::setSelectionEnd(const int x, const int y, const bool trimTrailingWh
const auto *data = _screenLines[line].data();
const int length = _screenLines.at(line).count();
for (int x = bottomColumn; x < lastColumn && x < length; x++) {
if (data[x].isRealCharacter && (!trimTrailingWhitespace || !QChar(data[x].character).isSpace())) {
for (int k = bottomColumn; k < lastColumn && k < length; k++) {
if (data[k].isRealCharacter && (!trimTrailingWhitespace || !QChar(data[k].character).isSpace())) {
beyondLastColumn = false;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment