From 2dd12f480d35194eaa2c97638cf972a09803c68a Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Mon, 18 Feb 2019 14:43:41 -0300 Subject: Fix conversions of list of smart pointers to python While converting smart pointers do not initialize the object with default/minimal constructor. Change-Id: Ie9400d8487accc0c90b0f0b31b855038ae698b5c Task-Id: PYSIDE-947 Reviewed-by: Friedemann Kleint --- sources/shiboken2/generator/shiboken2/shibokengenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/shiboken2/generator') diff --git a/sources/shiboken2/generator/shiboken2/shibokengenerator.cpp b/sources/shiboken2/generator/shiboken2/shibokengenerator.cpp index ca5dab54e..ec0d466f7 100644 --- a/sources/shiboken2/generator/shiboken2/shibokengenerator.cpp +++ b/sources/shiboken2/generator/shiboken2/shibokengenerator.cpp @@ -2683,7 +2683,7 @@ void ShibokenGenerator::writeMinimalConstructorExpression(QTextStream& s, const s << " = " << defaultCtor; return; } - if (isCppPrimitive(type)) + if (isCppPrimitive(type) || type->isSmartPointer()) return; const auto ctor = minimalConstructor(type); if (ctor.isValid()) { -- cgit v1.2.3