diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-11-29 20:03:01 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2023-12-07 23:36:14 +0100 |
commit | 1576d70e44e46d5e6540ca3973e8d8284a4e7404 (patch) | |
tree | 3ec51f585ca4a1987e215adb988bf08b60cc60e0 /tests/auto | |
parent | a0ae96e3e74d825bc77caa0f54d41c344afe4aa5 (diff) |
Qt ordering types: unify the form of the implicit conversion operators
The case statements I used when de-pessimising these functions were
pretty long, bumping against line-length limitations and annoying the
reader with overly long repetitive type names.
Add aliases to fix both issues, and also apply the form to
QPartialOrdering's operator std::partial_ordering for consistency.
I was kinda hoping that this would allow to DRY away some of the
repetition with macros, but it didn't work out in the end. It's still
a lot more pleasant to the eye, so don't let the experiment be for
nothing.
Amends 9c03935c9a22f3f6baa602ec0ea7ce91f4a842f0.
Change-Id: I9786ae5c7be0b8fb30e4df219f1c65b2e8589904
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions