aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/nullComparison.qml
Commit message (Collapse)AuthorAgeFilesLines
* QmlCompiler: Clean up equality operatorsUlf Hermann2023-08-251-0/+11
| | | | | | | | | | The special cases added for the number and null operations are generally useful also for other kinds of equalities and vice versa. Furthermore, there is no point in std::move'ing registers into equality operators. Task-number: QTBUG-115110 Change-Id: I6de634ee45e13aefd069677c4bf75020875e09fa Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QmlCompiler: Fix comparison of null and undefinedUlf Hermann2022-11-231-0/+26
Those are not stored. If we compare null to null or undefined to undefined, we do not have to generate a comparison at all. the result is statically known. Pick-to: 6.4 Fixes: QTBUG-108634 Change-Id: I6a5323c2e0c023838609aec90d7ecc15b885dc08 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>