From: Nobuaki Sukegawa Date: Sat, 13 Dec 2014 13:17:04 +0000 (+0900) Subject: Fix invalid assertion X-Git-Tag: v5.4.1~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6b05b641d9e60425762014952ef57d890bfff7b;p=platform%2Fupstream%2Fqtdeclarative.git Fix invalid assertion Change-Id: Ifd26d6863ad396e15d0097ed560eee8d281caccd Reviewed-by: Simon Hausmann --- diff --git a/src/qml/compiler/qqmltypecompiler.cpp b/src/qml/compiler/qqmltypecompiler.cpp index 8edf4bb..2c7414d 100644 --- a/src/qml/compiler/qqmltypecompiler.cpp +++ b/src/qml/compiler/qqmltypecompiler.cpp @@ -1139,7 +1139,7 @@ bool QQmlEnumTypeResolver::tryQualifiedEnumAssignment(const QmlIR::Object *obj, if (!prop->isWritable() && !(binding->flags & QV4::CompiledData::Binding::InitializerForReadOnlyDeclaration)) COMPILE_EXCEPTION(binding, tr("Invalid property assignment: \"%1\" is a read-only property").arg(stringAt(binding->propertyNameIndex))); - Q_ASSERT(binding->type = QV4::CompiledData::Binding::Type_Script); + Q_ASSERT(binding->type == QV4::CompiledData::Binding::Type_Script); const QString string = compiler->bindingAsString(obj, binding->value.compiledScriptIndex); if (!string.constData()->isUpper()) return true;