QTypeInfo: fix pointer detection
Although redudant, people are allowed to use Q_DECLARE_TYPEINFO on a pointer type. There's no reason to mis-detect the isPointer trait in that case. Change-Id: Ic116f24397c91f5a3d31f5d8ee9fa2e587823257 Pick-to: 5.15 6.2 6.4 6.5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
227b9cd084
commit
114b94c26e
@ -143,7 +143,7 @@ public: \
|
||||
enum { \
|
||||
isComplex = (((FLAGS) & Q_PRIMITIVE_TYPE) == 0) && !std::is_trivial_v<TYPE>, \
|
||||
isRelocatable = !isComplex || ((FLAGS) & Q_RELOCATABLE_TYPE) || qIsRelocatable<TYPE>, \
|
||||
isPointer = false, \
|
||||
isPointer = std::is_pointer_v< TYPE >, \
|
||||
isIntegral = std::is_integral< TYPE >::value, \
|
||||
isValueInitializationBitwiseZero = qIsValueInitializationBitwiseZero<TYPE>, \
|
||||
}; \
|
||||
|
Loading…
Reference in New Issue
Block a user