summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Zander <thomas.zander@trolltech.com>2009-10-15 11:06:55 (GMT)
committerThomas Zander <thomas.zander@trolltech.com>2009-11-16 13:41:44 (GMT)
commit040994514e6f51061b93ea951e0ae2d3b2d97526 (patch)
treec3bfe2f0526b631f8cbb6724ff7b408cc9eac356
parent116af8e05ffae348c8236f02bcc9b642f156d3e8 (diff)
downloadQt-040994514e6f51061b93ea951e0ae2d3b2d97526.zip
Qt-040994514e6f51061b93ea951e0ae2d3b2d97526.tar.gz
Qt-040994514e6f51061b93ea951e0ae2d3b2d97526.tar.bz2
Properly initialize all vars.
This fixes a valgrind warning.
-rw-r--r--demos/qtdemo/itemcircleanimation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/qtdemo/itemcircleanimation.cpp b/demos/qtdemo/itemcircleanimation.cpp
index 8c94eb7..74c3e6a 100644
--- a/demos/qtdemo/itemcircleanimation.cpp
+++ b/demos/qtdemo/itemcircleanimation.cpp
@@ -302,6 +302,7 @@ void ItemCircleAnimation::setupGuides()
int y = 20;
this->qtGuide1 = new GuideCircle(QRectF(x, y, 260, 260), -36, 342);
+ this->currGuide = 0;
new GuideLine(QPointF(x + 240, y + 268), this->qtGuide1);
new GuideLine(QPointF(x + 265, y + 246), this->qtGuide1);
new GuideLine(QPointF(x + 158, y + 134), this->qtGuide1);