summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmcssstyle.cpp
diff options
context:
space:
mode:
authorRym Bouabid <rym.bouabid@qt.io>2024-04-03 19:11:08 +0200
committerRym Bouabid <rym.bouabid@qt.io>2024-07-11 15:57:51 +0200
commitc0914c11a88a31d4b5a7d533ab4a3eb4afb5725d (patch)
treea4b04724facd22c33fd13c6bbaca28614b0bb735 /src/plugins/platforms/wasm/qwasmcssstyle.cpp
parentb44541d8a42b7fc0b24cde4086b0030623280cc0 (diff)
QExplicitlySharedDataPointerV2: Use new comparison helper macros
Provide the new comparesEqual() helper function as an implementation of the (in)equality operators. The smart pointers are totally ordered, so generalize QExplicitlySharedDataPointerV2 to the full comparison set by adding compareThreeWay() helper function. Use Q_DECLARE_STRONGLY_ORDERED_LITERAL_TYPE to provide all relational operators. Add comparisons between QExplicitlySharedDataPointerV2 and std::nullptr_t. Use QT_TEST_ALL_COMPARISON_OPS macros in unit-tests. Use the new Qt::totally_ordered_wrapper to wrap the "d" pointer to avoid UB when performing comparisons of QExplicitlySharedDataPointerV2. Task-number: QTBUG-120306 Change-Id: I177fdc1ff2363a5e84e65506468093b87c5c9c03 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmcssstyle.cpp')
0 files changed, 0 insertions, 0 deletions