summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/animation/qanimationgroup
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-17 15:52:53 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-21 09:58:23 +0100
commite8b4c49efddb87f4195c74668b5026119eccea56 (patch)
tree973f4539844b7ff0797bf7b7b1383c853dffda99 /tests/auto/corelib/animation/qanimationgroup
parented5583048ecf3d340ded7e4d5f1b926a9929eebd (diff)
qtbase tests: Fix some warnings
- Fix warnings about QAtomicPointer/Int usage - Fix some gcc 4.6 warnings about assigned/unused variables Change-Id: Ib4dbf9110f0dad93ad48e97278310f05fad3a82a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/animation/qanimationgroup')
-rw-r--r--tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp b/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp
index b92794ee78..736b4d20ff 100644
--- a/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp
+++ b/tests/auto/corelib/animation/qanimationgroup/tst_qanimationgroup.cpp
@@ -301,14 +301,14 @@ void tst_QAnimationGroup::setParentAutoAdd()
void tst_QAnimationGroup::beginNestedGroup()
{
- QAnimationGroup *subGroup;
QAnimationGroup *parent = new QParallelAnimationGroup();
for (int i = 0; i < 10; ++i) {
- if (i & 1)
- subGroup = new QParallelAnimationGroup(parent);
- else
- subGroup = new QSequentialAnimationGroup(parent);
+ if (i & 1) {
+ new QParallelAnimationGroup(parent);
+ } else {
+ new QSequentialAnimationGroup(parent);
+ }
QCOMPARE(parent->animationCount(), 1);
QAnimationGroup *child = static_cast<QAnimationGroup *>(parent->animationAt(0));