diff options
author | Thorbjørn Lund Martsum <tmartsum@gmail.com> | 2012-12-11 07:29:44 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-11 13:37:57 +0100 |
commit | 3e7e61f856c265504ded63f777f1df111a78269d (patch) | |
tree | 00e6f5a3e84eb25f290084c4fa8be63a4638fc55 /src/widgets/graphicsview/qgraphicsview.cpp | |
parent | 7a7d9628f307706238e9043c053472a5575c3b2c (diff) |
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>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsview.cpp')
-rw-r--r-- | src/widgets/graphicsview/qgraphicsview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsview.cpp b/src/widgets/graphicsview/qgraphicsview.cpp index 411297edd3..2147e2ac2b 100644 --- a/src/widgets/graphicsview/qgraphicsview.cpp +++ b/src/widgets/graphicsview/qgraphicsview.cpp @@ -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); |