summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql/kernel/qsqldatabase/tst_databases.h
diff options
context:
space:
mode:
authorRym Bouabid <rym.bouabid@qt.io>2024-04-03 18:52:59 +0200
committerRym Bouabid <rym.bouabid@qt.io>2024-07-04 22:08:12 +0200
commit793f3d8642139e9411ee0ec7999d8d8273b22241 (patch)
tree5483cebb846925292edcee5b0bcece20732e6d92 /tests/auto/sql/kernel/qsqldatabase/tst_databases.h
parent7131240754d4caa3891f667b4645d8915cb82535 (diff)
QExplicitlySharedDataPointer: Use new comparison helper macros
Provide the new comparesEqual() helper function as an implementation of the (in)equality operators and compareThreeWay() helper function for the rest of the relational operators. Use Q_DECLARE_STRONGLY_ORDERED to provide all relational operators. Use the new Qt::totally_ordered_wrapper to wrap the "d" pointer to avoid UB when performing comparisons of QExplicitlySharedDataPointer. Add some comparisons related tests for QExplicitlySharedDataPointer. Use QT_TEST_ALL_COMPARISON_OPS macros in unit-tests. Task-number: QTBUG-120306 Change-Id: I275484a96a57da2df92712ac97e237a88a889da5 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_databases.h')
0 files changed, 0 insertions, 0 deletions