From 4c48e8e53fc566270bb639f09bb2de3d5ddbd5cf Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Tue, 19 Feb 2019 08:41:38 -0300 Subject: Fix smart pointers with namespace Use the cppName when looking for metatype while generating smart pointer getter function Change-Id: Ib3a632dd7f667a6bf7c487cfb673f0e55cbddde9 Fixes: PYSIDE-948 Reviewed-by: Cristian Maureira-Fredes --- sources/shiboken2/tests/libsmart/smart.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sources/shiboken2/tests/libsmart/smart.cpp') diff --git a/sources/shiboken2/tests/libsmart/smart.cpp b/sources/shiboken2/tests/libsmart/smart.cpp index dbe8efa66..4132c2fc8 100644 --- a/sources/shiboken2/tests/libsmart/smart.cpp +++ b/sources/shiboken2/tests/libsmart/smart.cpp @@ -68,6 +68,12 @@ SharedPtr Obj::giveSharedPtrToInteger() return o; } +SharedPtr Obj::giveSharedPtrToInteger2() +{ + SharedPtr o(new Smart::Integer2); + return o; +} + int Obj::takeSharedPtrToObj(SharedPtr pObj) { pObj->printObj(); @@ -172,3 +178,13 @@ void Registry::setShouldPrint(bool flag) { m_printStuff = flag; } + +Smart::Integer2::Integer2() + : Integer () +{ +} + +Smart::Integer2::Integer2(const Smart::Integer2 &other) + : Integer (other) +{ +} -- cgit v1.2.3