forked from qt-creator/qt-creator
QmlDesigner: Silence bogus warning by Clang
The parens are needed by the fold expression. Change-Id: Ib53596f2be2f3bcdb6040c1690f5f6dfe6249583 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -776,8 +776,11 @@ QList<Type> ModelNode::properties(PropertyType... type) const
|
|||||||
auto propertyName = propertyEntry.first;
|
auto propertyName = propertyEntry.first;
|
||||||
auto property = propertyEntry.second;
|
auto property = propertyEntry.second;
|
||||||
auto propertyType = property->type();
|
auto propertyType = property->type();
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_CLANG("-Wparentheses-equality")
|
||||||
if (((propertyType == type) || ...))
|
if (((propertyType == type) || ...))
|
||||||
properties.emplace_back(propertyName, m_internalNode, model(), view());
|
properties.emplace_back(propertyName, m_internalNode, model(), view());
|
||||||
|
QT_WARNING_POP
|
||||||
}
|
}
|
||||||
|
|
||||||
return properties;
|
return properties;
|
||||||
|
|||||||
Reference in New Issue
Block a user