summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-02-28 08:30:09 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-28 09:07:06 +0100
commit3d4797abcddec57793544c2ee2185bef9545a323 (patch)
tree56033e0e1c4b7f079299f4dcb8bd08ae6060a9a1
parent5e11e66f63f10af97c8366bb76b3f1e2005753d5 (diff)
Tidy constructor.
-rw-r--r--src/lib/dcpomatic_time.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h
index e137b48ae..0d15028c6 100644
--- a/src/lib/dcpomatic_time.h
+++ b/src/lib/dcpomatic_time.h
@@ -79,9 +79,7 @@ template <class S, class O>
class Time
{
public:
- Time()
- : _t(0)
- {}
+ Time() = default;
typedef int64_t Type;
@@ -272,7 +270,7 @@ private:
friend struct ::dcpomatic_time_ceil_test;
friend struct ::dcpomatic_time_floor_test;
- Type _t;
+ Type _t = 0;
};