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
parent
7a7d9628f3
commit
3e7e61f856
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue