Cmake: Fix deprecation warning

... and use the result of the expression, which was previously computed
but not used.

Change-Id: Ic995d2842e71bf57ea404494e3586205a0c154e9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-07-05 14:26:43 +02:00
parent 6fc7d158df
commit 79fd852f70
2 changed files with 3 additions and 3 deletions

View File

@@ -341,8 +341,7 @@ static QStringList parseDefinition(const QString &definition)
void CMakeTool::parseFunctionDetailsOutput(const QString &output)
{
QSet<QString> functionSet;
functionSet.fromList(m_introspection->m_functions);
const QSet<QString> functionSet = Utils::toSet(m_introspection->m_functions);
bool expectDefinition = false;
QString currentDefinition;

View File

@@ -47,6 +47,7 @@
#include <QDesktopServices>
#include <QDialogButtonBox>
#include <QDir>
#include <QElapsedTimer>
#include <QGridLayout>
#include <QHeaderView>
#include <QIdentityProxyModel>
@@ -608,7 +609,7 @@ private:
const QColor foregroundColor2 = themeColor(Theme::Welcome_ForegroundSecondaryColor); // blacker.
mutable QPersistentModelIndex m_previousIndex;
mutable QTime m_startTime;
mutable QElapsedTimer m_startTime;
mutable QRect m_currentArea;
mutable QPointer<QAbstractItemView> m_currentWidget;
mutable QVector<QPair<QString, QRect>> m_currentTagRects;