summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/quuid.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-08-10 15:29:37 +0200
committerThiago Macieira <thiago.macieira@intel.com>2023-08-11 11:08:52 +0000
commit7bbd707299581840fa0ab369dd826102899cd2ee (patch)
tree76e7cc4ac85fd7d9fab6bddc7d76890f59f2c7a0 /src/corelib/plugin/quuid.h
parent6987aab2ab33e9d6d0a01cd04c9c3f8822baa95f (diff)
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>
Diffstat (limited to 'src/corelib/plugin/quuid.h')
-rw-r--r--src/corelib/plugin/quuid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/plugin/quuid.h b/src/corelib/plugin/quuid.h
index 2cefb4d764..6300731517 100644
--- a/src/corelib/plugin/quuid.h
+++ b/src/corelib/plugin/quuid.h
@@ -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