Commit b5c482a9 authored by Robert Loehning's avatar Robert Loehning

QmlDesigner: Remove double negations

Change-Id: Ifd5900ebf1e42c6fd8a762e24763c986228ef39d
Reviewed-by: Thomas Hartmann's avatarThomas Hartmann <thomas.hartmann@qt.io>
parent 0bc782c4
......@@ -1381,7 +1381,7 @@ void TextToModelMerger::syncExpressionProperty(AbstractProperty &modelProperty,
if (modelProperty.isBindingProperty()) {
BindingProperty bindingProperty = modelProperty.toBindingProperty();
if (bindingProperty.expression() != javascript
|| !astType.isEmpty() != bindingProperty.isDynamic()
|| astType.isEmpty() == bindingProperty.isDynamic()
|| astType != bindingProperty.dynamicTypeName()) {
differenceHandler.bindingExpressionsDiffer(bindingProperty, javascript, astType);
}
......@@ -1450,7 +1450,7 @@ void TextToModelMerger::syncVariantProperty(AbstractProperty &modelProperty,
VariantProperty modelVariantProperty = modelProperty.toVariantProperty();
if (!equals(modelVariantProperty.value(), astValue)
|| !astType.isEmpty() != modelVariantProperty.isDynamic()
|| astType.isEmpty() == modelVariantProperty.isDynamic()
|| astType != modelVariantProperty.dynamicTypeName()) {
differenceHandler.variantValuesDiffer(modelVariantProperty,
astValue,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment