forked from qt-creator/qt-creator
algorithm.h: Fix compilation with Qt 5.13.1
Fix the version check for the developer branch.
Amends c2fd7743e0
.
Change-Id: I552330bcbbd00367d8b7044d3bf5dc6952d1a469
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1249,7 +1249,7 @@ OutputIterator set_union(InputIterator1 first1,
|
|||||||
template <class T>
|
template <class T>
|
||||||
QSet<T> toSet(const QList<T> &list)
|
QSet<T> toSet(const QList<T> &list)
|
||||||
{
|
{
|
||||||
#if (QT_VERSION <= QT_VERSION_CHECK(5, 13, 0))
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
|
||||||
return list.toSet();
|
return list.toSet();
|
||||||
#else
|
#else
|
||||||
return QSet<T>(list.begin(), list.end());
|
return QSet<T>(list.begin(), list.end());
|
||||||
@@ -1259,7 +1259,7 @@ QSet<T> toSet(const QList<T> &list)
|
|||||||
template <class T>
|
template <class T>
|
||||||
QList<T> toList(const QSet<T> &set)
|
QList<T> toList(const QSet<T> &set)
|
||||||
{
|
{
|
||||||
#if (QT_VERSION <= QT_VERSION_CHECK(5, 13, 0))
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
|
||||||
return set.toList();
|
return set.toList();
|
||||||
#else
|
#else
|
||||||
return QList<T>(set.begin(), set.end());
|
return QList<T>(set.begin(), set.end());
|
||||||
|
Reference in New Issue
Block a user