QUuid: make (quint128) ctor explicit
It matches any integral type, any unscoped enum and any FP type, so we can't allow it to be implicit. In fact, it's probably better to only have a named contructor, fromUint128(). Found in API review. Pick-to: 6.6 Change-Id: I9b250e0b5e74a449b6df4efe3ea38b750c9744ed Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
6987aab2ab
commit
7bbd707299
@ -101,7 +101,7 @@ public:
|
||||
bool isNull() const noexcept;
|
||||
|
||||
#ifdef QT_SUPPORTS_INT128
|
||||
constexpr QUuid(quint128 uuid, QSysInfo::Endian order = QSysInfo::BigEndian) noexcept;
|
||||
constexpr explicit QUuid(quint128 uuid, QSysInfo::Endian order = QSysInfo::BigEndian) noexcept;
|
||||
constexpr quint128 toUInt128(QSysInfo::Endian order = QSysInfo::BigEndian) const noexcept;
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user