diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2023-08-25 12:04:18 +0200 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2023-08-25 23:58:12 +0200 |
| commit | 3ca5a7b3b6e7d6ddf46de8d5087faec6c9a70c92 (patch) | |
| tree | 0b19a78492e83337e23b4861d02024560647f94f /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | f839171eefbba670536262fa3b847d24bfdc627b (diff) | |
QmlCompiler: Clean up equality operators
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>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index 40689c6634..6070503028 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -3080,6 +3080,7 @@ void tst_QmlCppCodegen::nullComparison() QCOMPARE(o->property("w").toInt(), 3); QCOMPARE(o->property("x").toInt(), 1); QCOMPARE(o->property("y").toInt(), 5); + QCOMPARE(o->property("z").toInt(), 18); } void tst_QmlCppCodegen::numbersInJsPrimitive() |
