diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-25 00:27:37 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-25 00:27:37 (GMT) |
commit | edf7d8c450b1dbc55e10d68083e19e04366062ef (patch) | |
tree | c55363a7bb0f43f64f019bcbb594689fff998a69 /src | |
parent | 668c9d63d27b2a925c18f3128747c20b37560569 (diff) | |
download | Qt-edf7d8c450b1dbc55e10d68083e19e04366062ef.zip Qt-edf7d8c450b1dbc55e10d68083e19e04366062ef.tar.gz Qt-edf7d8c450b1dbc55e10d68083e19e04366062ef.tar.bz2 |
Remove faulty assert - the precondition is checked for correctly later on
Task-number: QTBUG-9336
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/qml/qdeclarativecompiler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp index e668553..c1f2fe6 100644 --- a/src/declarative/qml/qdeclarativecompiler.cpp +++ b/src/declarative/qml/qdeclarativecompiler.cpp @@ -1368,7 +1368,6 @@ bool QDeclarativeCompiler::buildSignal(QDeclarativeParser::Property *prop, QDecl const BindingContext &ctxt) { Q_ASSERT(obj->metaObject()); - Q_ASSERT(!prop->isEmpty()); QByteArray name = prop->name; Q_ASSERT(name.startsWith("on")); @@ -1387,7 +1386,7 @@ bool QDeclarativeCompiler::buildSignal(QDeclarativeParser::Property *prop, QDecl } else { if (prop->value || prop->values.count() != 1) - COMPILE_EXCEPTION(prop, QCoreApplication::translate("QDeclarativeCompiler","Incorrectly specified signal")); + COMPILE_EXCEPTION(prop, QCoreApplication::translate("QDeclarativeCompiler","Incorrectly specified signal assignment")); prop->index = sigIdx; obj->addSignalProperty(prop); |