X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimedelta.h;h=a3e62f161c33684f13b90444e23b40fda02567f4;hb=99b9121e2158603372c7313400283b622e6754d8;hp=2ce6eeb4e9e42d3d48db4a6d908d0c18c480810c;hpb=ab9e61f0bc6ed09dae52f538dc6927c54b9216df;p=libs%2Fcore.git diff --git a/source/time/timedelta.h b/source/time/timedelta.h index 2ce6eeb..a3e62f1 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() = default; /** Constructs a TimeDelta from a plain number. The purpose of this is to allow serialization together with the raw() function. */