aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcompiler.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-09-30 08:56:29 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-30 18:21:56 +0200
commit7df73c27121149c36a6c8a21850d85728ea79ad5 (patch)
treeacd2c88747e7fe8b827426e544520f43e4376b81 /src/qml/qml/qqmlcompiler.cpp
parentfb89bc5635c09cab0d737ffd17de5f17d797373a (diff)
Improve error location reporting for invalid aliases in old VME
When an alias declaration is missing a location, report the error with the location of the alias declaration, not the object declaration. This matches the code patch in the new compiler, which also reports it accurately. Change-Id: I709dbddb3273f4e05cc4d63079da52d7224466bd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler.cpp')
-rw-r--r--src/qml/qml/qqmlcompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp
index 08ae37e747..a17080f559 100644
--- a/src/qml/qml/qqmlcompiler.cpp
+++ b/src/qml/qml/qqmlcompiler.cpp
@@ -3243,7 +3243,7 @@ bool QQmlCompiler::buildDynamicMetaAliases(QQmlScript::Object *obj)
continue;
if (!p->defaultValue)
- COMPILE_EXCEPTION(obj, tr("No property alias location"));
+ COMPILE_EXCEPTION(p, tr("No property alias location"));
if (!p->defaultValue->values.isOne() ||
p->defaultValue->values.first()->object ||