diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-01-13 12:56:22 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-02-04 16:41:07 +0100 |
commit | 242f0fa7269e9baf331679dc413c28471b1f7d05 (patch) | |
tree | 009b5f9483f0e0e41e2258e3654f02bdc7551c0c /sources/shiboken2/tests/libsmart | |
parent | 174dcd4f6c0159f29189f01bc38f42d804886c57 (diff) |
shiboken: Fix shared pointer return value in virtual function
Smart pointer values did not have a minimal constructor defined,
add that. Also add a special case to the return type warning, since
that does not have the instantiated type.
Fixes: PYSIDE-1188
Change-Id: Ibadd7273f839eb19e1eeb5c912f124e3798207df
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/tests/libsmart')
-rw-r--r-- | sources/shiboken2/tests/libsmart/smart_obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/libsmart/smart_obj.h b/sources/shiboken2/tests/libsmart/smart_obj.h index e5709a071..8fe45993f 100644 --- a/sources/shiboken2/tests/libsmart/smart_obj.h +++ b/sources/shiboken2/tests/libsmart/smart_obj.h @@ -48,7 +48,7 @@ public: Integer takeInteger(Integer val); SharedPtr<Obj> giveSharedPtrToObj(); std::vector<SharedPtr<Obj> > giveSharedPtrToObjList(int size); - SharedPtr<Integer> giveSharedPtrToInteger(); + virtual SharedPtr<Integer> giveSharedPtrToInteger(); // virtual for PYSIDE-1188 SharedPtr<const Integer> giveSharedPtrToConstInteger(); int takeSharedPtrToConstInteger(SharedPtr<const Integer> pInt); SharedPtr<Smart::Integer2> giveSharedPtrToInteger2(); |