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:
Marco Bubke
2023-08-15 13:30:25 +02:00
committed by Tim Jenssen
parent c7d2b9bec1
commit a7987380cd

View File

@@ -776,8 +776,11 @@ QList<Type> ModelNode::properties(PropertyType... type) const
auto propertyName = propertyEntry.first;
auto property = propertyEntry.second;
auto propertyType = property->type();
QT_WARNING_PUSH
QT_WARNING_DISABLE_CLANG("-Wparentheses-equality")
if (((propertyType == type) || ...))
properties.emplace_back(propertyName, m_internalNode, model(), view());
QT_WARNING_POP
}
return properties;