X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimedelta.h;h=332683533cad5e3fea5e076360bb50fb2fa1714c;hb=122846f0881673770d88eff7d925ecf25c01b62e;hp=2ce6eeb4e9e42d3d48db4a6d908d0c18c480810c;hpb=ab9e61f0bc6ed09dae52f538dc6927c54b9216df;p=libs%2Fcore.git diff --git a/source/time/timedelta.h b/source/time/timedelta.h index 2ce6eeb..3326835 100644 --- a/source/time/timedelta.h +++ b/source/time/timedelta.h @@ -15,11 +15,11 @@ Represents a quantity of time, such as five seconds. class TimeDelta { private: - RawTime usec; + RawTime usec = 0; public: /** Constructs a zero TimeDelta. */ - TimeDelta(): usec(0) { } + TimeDelta() { } /** Constructs a TimeDelta from a plain number. The purpose of this is to allow serialization together with the raw() function. */