diff options
Diffstat (limited to 'src/qmlcompiler/qqmljsscope.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljsscope.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsscope.cpp b/src/qmlcompiler/qqmljsscope.cpp index ec0a90643d..e3d8bafeb3 100644 --- a/src/qmlcompiler/qqmljsscope.cpp +++ b/src/qmlcompiler/qqmljsscope.cpp @@ -508,6 +508,8 @@ QTypeRevision QQmlJSScope::resolveType( if (const QString typeName = parameter.typeName(); !parameter.type() && !typeName.isEmpty()) { const auto type = findType(typeName, context, usedTypes); + if (type.scope && type.scope->isReferenceType()) + parameter.setIsPointer(true); parameter.setType({ type.scope }); } } |