diff options
author | Maks Naumov <maksqwe1@ukr.net> | 2014-09-02 22:53:35 +0300 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2014-09-03 13:30:12 +0200 |
commit | 7af329fdf2ab25c38858fed8bb33e4fa0200766f (patch) | |
tree | 55eb5f54d4e0661c7d6aaafa520789c750e2900c /src/widgets/util | |
parent | 4dae1a685c3d78fa0601e8490117e9a62336c398 (diff) |
Widgets: remove pointless assignments
Assignment of a value was two times successively for same variable while
the variable itself is not used between these assignments.
Change-Id: I3c457e3af0505d32a64f6c8576b458cd15a951e5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/util')
-rw-r--r-- | src/widgets/util/qscroller.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/util/qscroller.cpp b/src/widgets/util/qscroller.cpp index 235cbc7865..abbba87039 100644 --- a/src/widgets/util/qscroller.cpp +++ b/src/widgets/util/qscroller.cpp @@ -746,9 +746,8 @@ void QScroller::ensureVisible(const QRectF &rect, qreal xmargin, qreal ymargin, return; // -- calculate the current pos (or the position after the current scroll) - QPointF startPos = d->contentPosition + d->overshootPosition; - startPos = QPointF(d->scrollingSegmentsEndPos(Qt::Horizontal), - d->scrollingSegmentsEndPos(Qt::Vertical)); + QPointF startPos(d->scrollingSegmentsEndPos(Qt::Horizontal), + d->scrollingSegmentsEndPos(Qt::Vertical)); QRectF marginRect(rect.x() - xmargin, rect.y() - ymargin, rect.width() + 2 * xmargin, rect.height() + 2 * ymargin); |