aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/objecttypeholder.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/libsample/objecttypeholder.h')
-rw-r--r--sources/shiboken2/tests/libsample/objecttypeholder.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/shiboken2/tests/libsample/objecttypeholder.h b/sources/shiboken2/tests/libsample/objecttypeholder.h
index ce13de74f..7558b11ee 100644
--- a/sources/shiboken2/tests/libsample/objecttypeholder.h
+++ b/sources/shiboken2/tests/libsample/objecttypeholder.h
@@ -37,15 +37,16 @@ class LIBSAMPLE_API ObjectTypeHolder
{
public:
explicit ObjectTypeHolder(const char* objectName);
+ explicit ObjectTypeHolder(const ObjectType *object = ObjectType::defaultInstance());
virtual ~ObjectTypeHolder();
- ObjectType* getObjecType() { return m_objectType; }
+ const ObjectType* getObjecType() { return m_objectType; }
virtual Str passObjectTypeAsReference(const ObjectType& objectType);
Str callPassObjectTypeAsReference();
private:
- ObjectType* m_objectType;
+ const ObjectType *m_objectType;
};
#endif