From 65e44b1f86342db4e74114dacccb4922d66364e1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 7 Sep 2003 22:39:04 +0000 Subject: [PATCH] Optimize: remove spurious RageTimer construction --- stepmania/src/RageInputDevice.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageInputDevice.h b/stepmania/src/RageInputDevice.h index 40cf81b78c..1570cda901 100644 --- a/stepmania/src/RageInputDevice.h +++ b/stepmania/src/RageInputDevice.h @@ -63,9 +63,10 @@ public: int button; RageTimer ts; - DeviceInput() { device=DEVICE_NONE; button=-1; ts.SetZero(); } - DeviceInput( InputDevice d, int b ) { device=d; button=b; ts.SetZero(); } - DeviceInput( InputDevice d, int b, const RageTimer &t ) { device=d; button=b; ts = t; } + DeviceInput(): device(DEVICE_NONE), button(-1), ts(RageZeroTimer) { } + DeviceInput( InputDevice d, int b ): device(d), button(b), ts(RageZeroTimer) { } + DeviceInput( InputDevice d, int b, const RageTimer &t ): + device(d), button(b), ts(t) { } bool operator==( const DeviceInput &other ) {