Fix warning about unused member

sub-attaq/boat_p.h:134:9: warning: private field 'key' is not used [-Wunused-private-field]

Change-Id: I3f4cb1325aaac71d2bf0e7807381742937d173f7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
bb10
Jędrzej Nowacki 2014-03-06 10:25:52 +01:00 committed by The Qt Project
parent 1664458f63
commit 2701585722
1 changed files with 1 additions and 2 deletions

View File

@ -118,7 +118,7 @@ private:
{
public:
KeyLaunchTransition(Boat *boat, QEvent::Type type, int key)
: QKeyEventTransition(boat, type, key), boat(boat), key(key)
: QKeyEventTransition(boat, type, key), boat(boat)
{
}
protected:
@ -131,7 +131,6 @@ protected:
}
private:
Boat * boat;
int key;
};
//This state is describing when the boat is moving right