summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-09-28 18:14:44 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-09-29 04:13:33 +0200
commitf2b4adebd40c56243bc6f042bc7f46e800c12423 (patch)
treed32302ce3968685687789bd3e5fcd9d92fc59fb2 /src
parent1e625033bed36b1614ebb337f976bca453f4676d (diff)
QDateTime: specify a class template argument
Although the code is legal in C++20 (due to the new CTAD rules for alias templates), clang-cl errors out on it. Just specify the template parameter, which we know anyways. Change-Id: Ifdea31853d4281601cf40ed8adeb14e493a5ce04 Pick-to: 6.4 Fixes: QTBUG-107043 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/time/qdatetime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/time/qdatetime.h b/src/corelib/time/qdatetime.h
index 2e617d7c91..2db9ed2dbc 100644
--- a/src/corelib/time/qdatetime.h
+++ b/src/corelib/time/qdatetime.h
@@ -458,7 +458,7 @@ public:
std::chrono::sys_time<std::chrono::milliseconds> toStdSysMilliseconds() const
{
const std::chrono::milliseconds duration(toMSecsSinceEpoch());
- return std::chrono::sys_time(duration);
+ return std::chrono::sys_time<std::chrono::milliseconds>(duration);
}
QT_POST_CXX17_API_IN_EXPORTED_CLASS