diff options
| author | Ivan Solovev <ivan.solovev@qt.io> | 2024-06-27 12:24:30 +0200 |
|---|---|---|
| committer | Ivan Solovev <ivan.solovev@qt.io> | 2024-08-30 21:35:31 +0200 |
| commit | 81d31d2760c82a52aab1e23caae795abbaf55c01 (patch) | |
| tree | 098df2998f1c1672d28e2a61d3fdcd1e4e757fab /src/gui/platform/unix/qgenericunixservices_p.h | |
| parent | 637fcc69c87352c21658fea1083e93786f64fc37 (diff) | |
QUuid: make more methods constexpr
Use QT6_{DECL,CALL}_NEW_OVERLOAD mechanism to provide new constexpr
overloads for isNull(), variant(), and version(). Move the old
methods into removed_api.cpp
Use this as an opportunity to optimize the implementaiton of the
methods. Also add compile-time checks to the tests.
It turns out that QNX compiler fails to compile the default
QUuid::isNull() implementation in constexpr context, so rewrite
it using a loop.
Change-Id: Ia23c81194ea27b369f00ce73b016695600187e46
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/platform/unix/qgenericunixservices_p.h')
0 files changed, 0 insertions, 0 deletions
