QElapsedTimer is POD, so it must be invalidated before use. 2082
authorRobin Burchell <robin.burchell@collabora.co.uk>
Thu, 21 Jul 2011 13:55:03 +0000 (15:55 +0200)
committerRobin Burchell <robin.burchell@collabora.co.uk>
Thu, 21 Jul 2011 13:55:03 +0000 (15:55 +0200)
commitbd6f9f1b678106b6e044f364f67a6aa5dca94082
tree64f17db679ba0c86479e945cb109f0aa752e4577
parent16bad8002c5fabeb184f584fcb16646a5cdaec3c
QElapsedTimer is POD, so it must be invalidated before use.

This fixes a valgrind warning:
==19420== Conditional jump or move depends on uninitialised value(s)
==19420==    at 0x5E29221: QElapsedTimer::isValid() const
==19420==    by 0x4E49F6B: ???
==19420==    by 0x4E4A505: MPhysics2DPanning::qt_metacall(QMetaObject::Call, int, void**)

as well as possibly incorrect behaviour.
src/corelib/widgets/mphysics2dpanning.cpp