diff --git a/src/corelib/ipc/qtipccommon.h b/src/corelib/ipc/qtipccommon.h index 5640b6ff6db..34d6edf03d6 100644 --- a/src/corelib/ipc/qtipccommon.h +++ b/src/corelib/ipc/qtipccommon.h @@ -37,7 +37,11 @@ public: ; static Type legacyDefaultTypeForOs() noexcept; - explicit constexpr QNativeIpcKey(Type type = DefaultTypeForOs) noexcept + constexpr QNativeIpcKey() noexcept + : QNativeIpcKey(DefaultTypeForOs) + {} + + explicit constexpr QNativeIpcKey(Type type) noexcept : d() { typeAndFlags.type = type;