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. Change-Id: I9b250e0b5e74a449b6df4efe3ea38b750c9744ed Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 7bbd707299581840fa0ab369dd826102899cd2ee) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
fa7a19e97a
commit
78165c6b83
@ -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