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;