mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-06 01:45:18 -05:00
clang-tidy: use range loop
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
414cb5026c
commit
44333fef0a
@ -1156,11 +1156,11 @@ namespace Phantom
|
|||||||
points[0] = QPointF(0.0, 0.55);
|
points[0] = QPointF(0.0, 0.55);
|
||||||
points[1] = QPointF(0.4, 1.0);
|
points[1] = QPointF(0.4, 1.0);
|
||||||
points[2] = QPointF(1.0, 0);
|
points[2] = QPointF(1.0, 0);
|
||||||
for (int i = 0; i < 3; ++i) {
|
for (auto& point : points) {
|
||||||
QPointF pnt = points[i];
|
QPointF pnt = point;
|
||||||
pnt.setX(pnt.x() * dimx + x);
|
pnt.setX(pnt.x() * dimx + x);
|
||||||
pnt.setY(pnt.y() * dimy + y);
|
pnt.setY(pnt.y() * dimy + y);
|
||||||
points[i] = pnt;
|
point = pnt;
|
||||||
}
|
}
|
||||||
scratchPen.setBrush(swatch.brush(color));
|
scratchPen.setBrush(swatch.brush(color));
|
||||||
scratchPen.setCapStyle(Qt::RoundCap);
|
scratchPen.setCapStyle(Qt::RoundCap);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user