aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickpathview.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@digia.com>2013-11-06 13:00:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-09 22:46:47 +0100
commit1738e4ee119bbcd20d33353e7018f04d92766639 (patch)
tree6a42bbeaf08f7d78d508284e4d957f937a2ae688 /src/quick/items/qquickpathview.cpp
parent59fb0d88a0ad354311d0f2e8f27c738f05f524c0 (diff)
moveOffset in QQuickPathView::modelUpdated uninitialized
Get a error for compiling with gcc 2.8.1. Change-Id: If93ed69695fb523eff05cae2960e3743dc496310 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/quick/items/qquickpathview.cpp')
-rw-r--r--src/quick/items/qquickpathview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickpathview.cpp b/src/quick/items/qquickpathview.cpp
index 696cf145da..1f41fe04e5 100644
--- a/src/quick/items/qquickpathview.cpp
+++ b/src/quick/items/qquickpathview.cpp
@@ -2031,7 +2031,7 @@ void QQuickPathView::modelUpdated(const QQmlChangeSet &changeSet, bool reset)
const int modelCount = d->modelCount;
int moveId = -1;
- int moveOffset;
+ int moveOffset = 0;
bool currentChanged = false;
bool changedOffset = false;
foreach (const QQmlChangeSet::Remove &r, changeSet.removes()) {