From faea30227ba633da5ab257d0247853e0927244bb Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Fri, 8 Dec 2023 17:15:16 +0100 Subject: [PATCH] refactor: Use C++20 std::chrono::days --- src/qt/guiutil.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index eb9c65caf28..b8ac187ff98 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -723,8 +723,7 @@ QString ConnectionTypeToQString(ConnectionType conn_type, bool prepend_direction QString formatDurationStr(std::chrono::seconds dur) { - using days = std::chrono::duration>; // can remove this line after C++20 - const auto d{std::chrono::duration_cast(dur)}; + const auto d{std::chrono::duration_cast(dur)}; const auto h{std::chrono::duration_cast(dur - d)}; const auto m{std::chrono::duration_cast(dur - d - h)}; const auto s{std::chrono::duration_cast(dur - d - h - m)};