diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-07-08 11:03:23 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-07-08 13:30:11 +0200 |
commit | 5f3ac8a4d02d8d7b33ee3d09b5b56064c9e39bc7 (patch) | |
tree | c874bd64ededff2b9b939f9b59b384aab98dc180 /src/qml/qml/qqmlpropertycachecreator_p.h | |
parent | 89c9418621990961ced6add0e218eaaf63a1656e (diff) |
Move qQmlCompileError to QQmlPropertyCacheCreator
It's only used in the runtime.
Change-Id: Iac1d9f5eabeae7fb8c1816be61d2f35711815dc9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertycachecreator_p.h')
-rw-r--r-- | src/qml/qml/qqmlpropertycachecreator_p.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlpropertycachecreator_p.h b/src/qml/qml/qqmlpropertycachecreator_p.h index 14f734277d..b29f14ff4a 100644 --- a/src/qml/qml/qqmlpropertycachecreator_p.h +++ b/src/qml/qml/qqmlpropertycachecreator_p.h @@ -57,6 +57,16 @@ QT_BEGIN_NAMESPACE +inline QQmlJS::DiagnosticMessage qQmlCompileError(const QV4::CompiledData::Location &location, + const QString &description) +{ + QQmlJS::DiagnosticMessage error; + error.line = location.line; + error.column = location.column; + error.message = description; + return error; +} + struct QQmlBindingInstantiationContext { QQmlBindingInstantiationContext() {} QQmlBindingInstantiationContext(int referencingObjectIndex, |