Rename local variables masking parameters

As found by LGTM.com.

Change-Id: I9a237899dc50009da5643c49c590f3b15bb817bf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Dimitrios Apostolou 2020-07-04 03:53:46 +02:00
parent b800f74fe0
commit 14a8fb2321

View File

@ -490,9 +490,9 @@ void QWidgetPrivate::moveRect(const QRect &rect, int dx, int dy)
if (overlappedExpose.isEmpty() || qFloor(factor) == factor) {
const QList<QRect> rectsToScroll =
getSortedRectsToScroll(QRegion(sourceRect) - overlappedExpose, dx, dy);
for (QRect rect : rectsToScroll) {
if (repaintManager->bltRect(rect, dx, dy, pw)) {
childExpose -= rect.translated(dx, dy);
for (QRect r : rectsToScroll) {
if (repaintManager->bltRect(r, dx, dy, pw)) {
childExpose -= r.translated(dx, dy);
}
}
}
@ -572,9 +572,9 @@ void QWidgetPrivate::scrollRect(const QRect &rect, int dx, int dy)
if (overlappedExpose.isEmpty() || qFloor(factor) == factor) {
const QList<QRect> rectsToScroll =
getSortedRectsToScroll(QRegion(sourceRect) - overlappedExpose, dx, dy);
for (const QRect &rect : rectsToScroll) {
if (repaintManager->bltRect(rect, dx, dy, q)) {
childExpose -= rect.translated(dx, dy);
for (const QRect &r : rectsToScroll) {
if (repaintManager->bltRect(r, dx, dy, q)) {
childExpose -= r.translated(dx, dy);
}
}
}