Browse Source

Merge topic 'cmake-gui-qt-5.14'

8eb7cf9b5f cmake-gui: Fix compilation as C++14 with Qt 5.14

Acked-by: Kitware Robot <[email protected]>
Acked-by: Ben Boeckel <[email protected]>
Merge-request: !4978
Brad King 5 years ago
parent
commit
6bdbc7dba0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Source/QtDialog/QCMakeCacheView.cxx

+ 4 - 4
Source/QtDialog/QCMakeCacheView.cxx

@@ -214,14 +214,14 @@ void QCMakeCacheModel::setProperties(const QCMakePropertyList& props)
 #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
     newProps = props.toSet();
 #else
-    newProps = QSet(props.begin(), props.end());
+    newProps = QSet<QCMakeProperty>(props.begin(), props.end());
 #endif
     newProps2 = newProps;
 #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
     QSet<QCMakeProperty> oldProps = this->properties().toSet();
 #else
-    QSet<QCMakeProperty> oldProps =
-      QSet(this->properties().begin(), this->properties().end());
+    QSet<QCMakeProperty> oldProps = QSet<QCMakeProperty>(
+      this->properties().begin(), this->properties().end());
 #endif
     oldProps.intersect(newProps);
     newProps.subtract(oldProps);
@@ -230,7 +230,7 @@ void QCMakeCacheModel::setProperties(const QCMakePropertyList& props)
 #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
     newProps2 = props.toSet();
 #else
-    newProps2 = QSet(props.begin(), props.end());
+    newProps2 = QSet<QCMakeProperty>(props.begin(), props.end());
 #endif
   }