diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-03-06 15:48:43 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-06 21:50:28 +0100 |
commit | c2530a0f59f6bc7dc31e72a06851b8821c9ee5a2 (patch) | |
tree | 341bf06364ac14e04ef4883277285be909e4c6d6 /examples/widgets/animation/sub-attaq/states.cpp | |
parent | e1d39c6bfcd940b9d68a15f3dcbfce0121afdab2 (diff) |
Fix warnings about unused variables in sub-attaq-example (CLANG).
Change-Id: Icad46a03a8d5875c128bd1f1bc97127e0ee05622
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'examples/widgets/animation/sub-attaq/states.cpp')
-rw-r--r-- | examples/widgets/animation/sub-attaq/states.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/animation/sub-attaq/states.cpp b/examples/widgets/animation/sub-attaq/states.cpp index 8c78ccdd12..e36d13ad07 100644 --- a/examples/widgets/animation/sub-attaq/states.cpp +++ b/examples/widgets/animation/sub-attaq/states.cpp @@ -123,7 +123,7 @@ void PlayState::onEntry(QEvent *) levelState->addTransition(winTransition); //This state is an animation when the score changed - UpdateScoreState *scoreState = new UpdateScoreState(this, levelState); + UpdateScoreState *scoreState = new UpdateScoreState(levelState); //This transition update the score when a submarine die UpdateScoreTransition *scoreTransition = new UpdateScoreTransition(scene, this, levelState); @@ -275,7 +275,7 @@ void WinState::onExit(QEvent *) } /** UpdateScore State */ -UpdateScoreState::UpdateScoreState(PlayState *g, QState *parent) : QState(parent), game(g) +UpdateScoreState::UpdateScoreState(QState *parent) : QState(parent) { } |