diff options
Diffstat (limited to 'sources/shiboken2/tests/libsample/objecttype.cpp')
-rw-r--r-- | sources/shiboken2/tests/libsample/objecttype.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken2/tests/libsample/objecttype.cpp b/sources/shiboken2/tests/libsample/objecttype.cpp index 855c08611..afaaa9d77 100644 --- a/sources/shiboken2/tests/libsample/objecttype.cpp +++ b/sources/shiboken2/tests/libsample/objecttype.cpp @@ -57,6 +57,12 @@ ObjectType::createWithChild() return parent; } +const ObjectType *ObjectType::defaultInstance() +{ + static ObjectType result; + return &result; +} + void ObjectType::removeChild(ObjectType* child) { |