summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4compilerscanfunctions.cpp
diff options
context:
space:
mode:
authorSemih Yavuz <semih.yavuz@qt.io>2022-12-13 01:43:09 +0100
committerSemih Yavuz <semih.yavuz@qt.io>2023-01-06 17:28:31 +0000
commit6a816a9e0dfc2b41a4f86c721679f2517ec27eb6 (patch)
tree0ab9aaf405feef50c91540dd7bfbd14d23882eef /src/qml/compiler/qv4compilerscanfunctions.cpp
parentb6fd3191c1c0fa1697c90b0457e3f9523bbad11d (diff)
downloadqtdeclarative-6a816a9e0dfc2b41a4f86c721679f2517ec27eb6.tar.gz
QmlCachegen: Equality comparison ability to var and void/null types
The code generator currently rejects any comparisons other than primitive types. Add comparison capability for var types against null or undefined types and vice versa. To achieve this, we generate code that fetches the contained object within the variant and comparison is done depending on the stored type. Ideally, we also need to add comparison capability for QObject *, that will be handled with QTBUG-109377. Pick-to: 6.5 Fixes: QTBUG-108632 Change-Id: Ib15450d7922f6025c78def5cc548c74827ad740f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
0 files changed, 0 insertions, 0 deletions