mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
for call of QVariant ctor
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
This commit is contained in:
parent
8343e3f544
commit
1a73bf3f2c
@ -599,7 +599,7 @@ QVariant::Type QgsVariantUtils::metaTypeToVariantType( QMetaType::Type metaType
|
|||||||
QVariant QgsVariantUtils::createVariant( QMetaType::Type metaType )
|
QVariant QgsVariantUtils::createVariant( QMetaType::Type metaType )
|
||||||
{
|
{
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
return QgsVariantUtils::metaTypeToVariantType( metaType );
|
return QVariant( QgsVariantUtils::metaTypeToVariantType( metaType ) );
|
||||||
#else
|
#else
|
||||||
return QVariant( QMetaType( metaType ) );
|
return QVariant( QMetaType( metaType ) );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user