diff options
| author | Rym Bouabid <rym.bouabid@qt.io> | 2024-03-20 12:44:44 +0100 |
|---|---|---|
| committer | Rym Bouabid <rym.bouabid@qt.io> | 2024-05-30 20:51:46 +0200 |
| commit | 890c270b9b27de5075bda668dbe8117649673b05 (patch) | |
| tree | b44f6a9f85d11ccebc3ecccdeaba0457f39e9601 /src/openglwidgets/qopenglwidget.cpp | |
| parent | 99475db542b3fa36eb2857e4560b9f5b09d57114 (diff) | |
QPointer: Use new comparison helper macros
Provide the new comparesEqual() helper function as an implementation of
(in)equality operators.
Use QT_DECLARE_EQUALITY_OPERATORS_HELPER macro instead of
Q_DECLARE_EQUALITY_COMPARABLE for the comparison between QPointer<T>
and QPointer<X> to avoid creating the reversed version of the
operators in C++17 mode.
Use new \compares command in the documentation to describe the
comparison operators provided by QPointer.
Task-number: QTBUG-120306
Change-Id: Iff24d3ef5c790de7f06ab825f853e06186fa1471
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/openglwidgets/qopenglwidget.cpp')
0 files changed, 0 insertions, 0 deletions
