QmlDesigner: Remove double negations

Change-Id: Ifd5900ebf1e42c6fd8a762e24763c986228ef39d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Robert Loehning
2017-06-09 18:19:41 +02:00
parent 0bc782c468
commit b5c482a906

View File

@@ -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,