diff options
| author | Ivan Solovev <ivan.solovev@qt.io> | 2023-07-13 16:30:34 +0200 |
|---|---|---|
| committer | Ivan Solovev <ivan.solovev@qt.io> | 2023-07-17 18:49:16 +0200 |
| commit | 0393fa6bf244c1135a9ed20cba8649687da45b9b (patch) | |
| tree | 36d9e363a63fe373ff56e5dd098d75b37dfd14a2 /src/testlib/doc/snippets/code/code.pro | |
| parent | ef4e36aa3c816d9d8d07db412e72821a75de4e40 (diff) | |
QUuid: handle quint128 and Id128Bytes data in the same way
The QUuid(quint128) ctor was handing the incoming data differently
from the QUuid(Id128Bytes) ctor. Same was valid for the return
values of QUuid::toUint128() vs QUuid::toBytes().
The provided test didn't reveal it, because it was treating the same
128-bit input value as BE in one place, and as LE in another place.
This patch fixes the test, and updates the implementation of
QUuid(quint128) ctor and toUInt128() method to verify that the
updated test passes.
This commit amends 8566c2db85a6f579a1a0432d0b7621633158e04c
Pick-to: 6.6
Change-Id: I24edb8ba0c8f7fd15062ba0b2a94ad387c3e98b6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/testlib/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions
