]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timedelta.h
Use default member initializers and constructor delegation
[libs/core.git] / source / time / timedelta.h
index 2ce6eeb4e9e42d3d48db4a6d908d0c18c480810c..332683533cad5e3fea5e076360bb50fb2fa1714c 100644 (file)
@@ -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. */