aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsmart/smart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/libsmart/smart.cpp')
-rw-r--r--sources/shiboken2/tests/libsmart/smart.cpp16
1 files changed, 16 insertions, 0 deletions
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<Integer> Obj::giveSharedPtrToInteger()
return o;
}
+SharedPtr<Smart::Integer2> Obj::giveSharedPtrToInteger2()
+{
+ SharedPtr<Smart::Integer2> o(new Smart::Integer2);
+ return o;
+}
+
int Obj::takeSharedPtrToObj(SharedPtr<Obj> 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)
+{
+}