diff options
author | Alan Alpert <aalpert@blackberry.com> | 2013-04-01 11:14:48 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-02 20:07:20 +0200 |
commit | f12d7eb1d0b97a9b068ca8da9cc1bed04db9a518 (patch) | |
tree | d49eb19a01b274ab723f9c89cd27bbd8312d8d8c /src/qml/qml/qqmlcompiler.cpp | |
parent | f7fa3eb2d869d9d51458635de229fc6b314f44fd (diff) |
Stabilize Code
Apparently it is no longer necessary to rely on undefined compiler
behavior.
Change-Id: I8e93dc0de663713c714d7894f4c66acb0aec30b4
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler.cpp')
-rw-r--r-- | src/qml/qml/qqmlcompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp index a5f1cc564f..6951c8c387 100644 --- a/src/qml/qml/qqmlcompiler.cpp +++ b/src/qml/qml/qqmlcompiler.cpp @@ -2527,7 +2527,7 @@ bool QQmlCompiler::buildPropertyLiteralAssignment(QQmlScript::Property *prop, struct StaticQtMetaObject : public QObject { static const QMetaObject *get() - { return &static_cast<StaticQtMetaObject*> (0)->staticQtMetaObject; } + { return &staticQtMetaObject; } }; bool QQmlCompiler::testQualifiedEnumAssignment(QQmlScript::Property *prop, |