diff options
author | Semih Yavuz <semih.yavuz@qt.io> | 2022-12-13 01:43:09 +0100 |
---|---|---|
committer | Semih Yavuz <semih.yavuz@qt.io> | 2023-01-06 17:28:31 +0000 |
commit | 6a816a9e0dfc2b41a4f86c721679f2517ec27eb6 (patch) | |
tree | 0ab9aaf405feef50c91540dd7bfbd14d23882eef /src/qml/compiler/qv4compilerscanfunctions.cpp | |
parent | b6fd3191c1c0fa1697c90b0457e3f9523bbad11d (diff) | |
download | qtdeclarative-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