From ad45daddebaf5d400df4bb99481af1af3b3a842b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 17 Jan 2020 14:44:25 +0200 Subject: [PATCH] Fix build. --HG-- branch : develop --- src/libs/vmisc/compatibility.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/vmisc/compatibility.h b/src/libs/vmisc/compatibility.h index 570b9cacb..0c7d9ee05 100644 --- a/src/libs/vmisc/compatibility.h +++ b/src/libs/vmisc/compatibility.h @@ -74,7 +74,7 @@ template class C> inline QList ConvertToList(const C &container) { #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) - return T(container.begin(), container.end()); + return QList(container.begin(), container.end()); #else return container.toList(); #endif @@ -85,7 +85,7 @@ template class C> inline QSet ConvertToSet(const C &container) { #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) - return T(container.begin(), container.end()); + return QSet(container.begin(), container.end()); #else return container.toSet(); #endif @@ -96,7 +96,7 @@ template inline QSet ConvertToSet(const C &container) { #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) - return T(container.begin(), container.end()); + return QSet(container.begin(), container.end()); #else return container.toSet(); #endif