From 040994514e6f51061b93ea951e0ae2d3b2d97526 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Thu, 15 Oct 2009 13:06:55 +0200 Subject: Properly initialize all vars. This fixes a valgrind warning. --- demos/qtdemo/itemcircleanimation.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v0.12