summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-02-17 15:30:52 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-02-18 15:13:49 (GMT)
commitb77624c18896e149f338cb512369215b11bba685 (patch)
tree9ca148ad968d2c8afaa8c2111ca669c4ef93c447 /tests/benchmarks
parent5c4363a0fa3cd654413ff2637cb70aeec7a590ef (diff)
downloadQt-b77624c18896e149f338cb512369215b11bba685.zip
Qt-b77624c18896e149f338cb512369215b11bba685.tar.gz
Qt-b77624c18896e149f338cb512369215b11bba685.tar.bz2
Compiler warnings in QGraphicsView benchmark.
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/gui/graphicsview/qgraphicsview/tst_qgraphicsview.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/benchmarks/gui/graphicsview/qgraphicsview/tst_qgraphicsview.cpp b/tests/benchmarks/gui/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
index 10e00a6..267fecc 100644
--- a/tests/benchmarks/gui/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/benchmarks/gui/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
@@ -560,7 +560,7 @@ void tst_QGraphicsView::imageRiver()
#else
for (int i = 0; i < 100; ++i) {
#endif
- AnimatedPixmapItem *item;
+ AnimatedPixmapItem *item = 0;
if (direction == 0) item = new AnimatedPixmapItem((i % 4) + 1, 0, rotation, scale);
if (direction == 1) item = new AnimatedPixmapItem(0, (i % 4) + 1, rotation, scale);
if (direction == 2) item = new AnimatedPixmapItem((i % 4) + 1, (i % 4) + 1, rotation, scale);
@@ -682,7 +682,7 @@ void tst_QGraphicsView::textRiver()
#else
for (int i = 0; i < 100; ++i) {
#endif
- AnimatedTextItem *item;
+ AnimatedTextItem *item = 0;
if (direction == 0) item = new AnimatedTextItem((i % 4) + 1, 0, rotation, scale);
if (direction == 1) item = new AnimatedTextItem(0, (i % 4) + 1, rotation, scale);
if (direction == 2) item = new AnimatedTextItem((i % 4) + 1, (i % 4) + 1, rotation, scale);
@@ -792,7 +792,7 @@ void tst_QGraphicsView::moveItemCache()
#else
for (int i = 0; i < 50; ++i) {
#endif
- AnimatedPixmapCacheItem *item;
+ AnimatedPixmapCacheItem *item = 0;
if (direction == 0) item = new AnimatedPixmapCacheItem((i % 4) + 1, 0);
if (direction == 1) item = new AnimatedPixmapCacheItem(0, (i % 4) + 1);
if (direction == 2) item = new AnimatedPixmapCacheItem((i % 4) + 1, (i % 4) + 1);
@@ -843,6 +843,7 @@ public:
protected:
void advance(int i)
{
+ Q_UNUSED(i);
if (partial)
update(QRectF(boundingRect().center().x(), boundingRect().center().x(), 30, 30));
else