diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-01-08 13:08:21 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-01-08 13:09:14 +0100 |
commit | 8774a881126704a9c68a4ab4e748fec7572b795d (patch) | |
tree | b7918a32065b44f3c6d589fa0c3621115ecb060e /config | |
parent | 03b1d8abecbf7db72845f883bf20c3c9bdf820a4 (diff) |
Use default constructor for time point when duration since epoch is zero.
Diffstat (limited to 'config')
-rw-r--r-- | config/src/tests/trace/trace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/src/tests/trace/trace.cpp b/config/src/tests/trace/trace.cpp index 89e1cb3cbaf..41c874eb1d4 100644 --- a/config/src/tests/trace/trace.cpp +++ b/config/src/tests/trace/trace.cpp @@ -10,7 +10,7 @@ using namespace vespalib::slime; struct FixedClock : public Clock { - FixedClock() : _currentTime(vespalib::system_time::duration::zero()) { } + FixedClock() : _currentTime() { } vespalib::system_time _currentTime; vespalib::system_time currentTime() const override { return _currentTime; } }; @@ -57,7 +57,7 @@ TEST("that trace can be copied") { EXPECT_EQUAL(trace.toString(), trace2.toString()); } -constexpr vespalib::system_time epoch(vespalib::system_time::duration::zero()); +constexpr vespalib::system_time epoch; TEST("ensure that system clock is used by default") { Trace trace(2); |