clang-tidy: use range loop

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2022-04-11 16:30:20 -07:00 committed by Jonathan White
parent 414cb5026c
commit 44333fef0a

View File

@ -1156,11 +1156,11 @@ namespace Phantom
points[0] = QPointF(0.0, 0.55);
points[1] = QPointF(0.4, 1.0);
points[2] = QPointF(1.0, 0);
for (int i = 0; i < 3; ++i) {
QPointF pnt = points[i];
for (auto& point : points) {
QPointF pnt = point;
pnt.setX(pnt.x() * dimx + x);
pnt.setY(pnt.y() * dimy + y);
points[i] = pnt;
point = pnt;
}
scratchPen.setBrush(swatch.brush(color));
scratchPen.setCapStyle(Qt::RoundCap);