QGraphicsView - add const to a not modified local variable

The QPointF ep is not modified. There is no reason it shouldn't
be const.

Change-Id: I41fb8f9ae5296a7a40f7eb8be13fc14d56915e3f
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
bb10
Thorbjørn Lund Martsum 2012-12-11 07:29:44 +01:00 committed by The Qt Project
parent 7a7d9628f3
commit 3e7e61f856
1 changed files with 1 additions and 1 deletions

View File

@ -3239,7 +3239,7 @@ void QGraphicsView::mouseMoveEvent(QMouseEvent *event)
// Update rubberband position
const QPoint mp = mapFromScene(d->mousePressScenePoint);
QPoint ep = event->pos();
const QPoint ep = event->pos();
d->rubberBandRect = QRect(qMin(mp.x(), ep.x()), qMin(mp.y(), ep.y()),
qAbs(mp.x() - ep.x()) + 1, qAbs(mp.y() - ep.y()) + 1);