Fix build.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2020-01-17 14:44:25 +02:00
parent 7998687b03
commit ad45daddeb

View File

@ -74,7 +74,7 @@ template <typename T, template <typename> class C>
inline QList<T> ConvertToList(const C<T> &container) inline QList<T> ConvertToList(const C<T> &container)
{ {
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
return T(container.begin(), container.end()); return QList<T>(container.begin(), container.end());
#else #else
return container.toList(); return container.toList();
#endif #endif
@ -85,7 +85,7 @@ template <typename T, template <typename> class C>
inline QSet<T> ConvertToSet(const C<T> &container) inline QSet<T> ConvertToSet(const C<T> &container)
{ {
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
return T(container.begin(), container.end()); return QSet<T>(container.begin(), container.end());
#else #else
return container.toSet(); return container.toSet();
#endif #endif
@ -96,7 +96,7 @@ template <typename T, typename C>
inline QSet<T> ConvertToSet(const C &container) inline QSet<T> ConvertToSet(const C &container)
{ {
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
return T(container.begin(), container.end()); return QSet<T>(container.begin(), container.end());
#else #else
return container.toSet(); return container.toSet();
#endif #endif