summaryrefslogtreecommitdiffstats
path: root/examples/statemachine
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-05-20 14:13:00 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-05-20 14:13:00 (GMT)
commitdcdd15156595dbc317732970e48efa32d32b256a (patch)
treebeff81bb0a4d2d17bdd581324310ae8877b5c544 /examples/statemachine
parent5a60fd1a0b39b9d366a524cc8c8576b417551e6d (diff)
downloadQt-dcdd15156595dbc317732970e48efa32d32b256a.zip
Qt-dcdd15156595dbc317732970e48efa32d32b256a.tar.gz
Qt-dcdd15156595dbc317732970e48efa32d32b256a.tar.bz2
fix compiler warnings
Diffstat (limited to 'examples/statemachine')
-rw-r--r--examples/statemachine/tankgame/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/statemachine/tankgame/mainwindow.cpp b/examples/statemachine/tankgame/mainwindow.cpp
index fcc0325..3437140 100644
--- a/examples/statemachine/tankgame/mainwindow.cpp
+++ b/examples/statemachine/tankgame/mainwindow.cpp
@@ -201,7 +201,7 @@ void MainWindow::gameOver()
TankItem *lastTankStanding = 0;
foreach (QGraphicsItem *item, items) {
if (GameItem *gameItem = qgraphicsitem_cast<GameItem *>(item)) {
- if (lastTankStanding = qobject_cast<TankItem *>(gameItem))
+ if ((lastTankStanding = qobject_cast<TankItem *>(gameItem)) != 0)
break;
}
}