aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcontext.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-05-20 15:43:48 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-05-26 08:04:17 +0000
commit7accd9cc74d88a17b08c83ea4b8275557dc318bb (patch)
treebf34489a210340e8866c07f184c0611506ac85a6 /src/qml/qml/qqmlcontext.cpp
parent7645c8e0f88a83d021f0a327617189b7772b14eb (diff)
Consistently use pointers for the local variant in findProperty
Creating property data on the fly shall be optional, and we generally use pointers for such "output" parameters. Change-Id: I0e4c6c079381b60140971f4fd70a25d6548323eb Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlcontext.cpp')
-rw-r--r--src/qml/qml/qqmlcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcontext.cpp b/src/qml/qml/qqmlcontext.cpp
index a67eeeecc9..0b74b9d643 100644
--- a/src/qml/qml/qqmlcontext.cpp
+++ b/src/qml/qml/qqmlcontext.cpp
@@ -374,7 +374,7 @@ QVariant QQmlContext::contextProperty(const QString &name) const
if (QObject *obj = data->contextObject()) {
QQmlPropertyData local;
QQmlPropertyData *property =
- QQmlPropertyCache::property(data->engine(), obj, name, data, local);
+ QQmlPropertyCache::property(data->engine(), obj, name, data, &local);
if (property) value = obj->metaObject()->property(property->coreIndex()).read(obj);
}