diff --git a/src/time/SystemClock.hxx b/src/time/SystemClock.hxx index 973256b48..2c5a12fb5 100644 --- a/src/time/SystemClock.hxx +++ b/src/time/SystemClock.hxx @@ -12,7 +12,7 @@ template [[gnu::const]] std::chrono::system_clock::time_point -TimePointAfterUnixEpoch(const std::chrono::duration &d) noexcept +TimePointAfterUnixEpoch(const std::chrono::duration d) noexcept { /* this is guaranteed to be 0 in C++20 */ const auto unix_epoch = std::chrono::system_clock::from_time_t(0); @@ -27,7 +27,7 @@ TimePointAfterUnixEpoch(const std::chrono::duration &d) noexcept */ [[gnu::const]] inline std::chrono::system_clock::duration -DurationSinceUnixEpoch(const std::chrono::system_clock::time_point &tp) noexcept +DurationSinceUnixEpoch(const std::chrono::system_clock::time_point tp) noexcept { /* this is guaranteed to be 0 in C++20 */ const auto unix_epoch = std::chrono::system_clock::from_time_t(0);