aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/objecttype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/objecttype.cpp')
-rw-r--r--tests/libsample/objecttype.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/libsample/objecttype.cpp b/tests/libsample/objecttype.cpp
index 4c608037..d57dbedd 100644
--- a/tests/libsample/objecttype.cpp
+++ b/tests/libsample/objecttype.cpp
@@ -40,7 +40,7 @@
using namespace std;
-ObjectType::ObjectType(ObjectType* parent) : m_parent(0), m_layout(0)
+ObjectType::ObjectType(ObjectType* parent) : m_parent(0), m_layout(0), m_call_id(-1)
{
setParent(parent);
}
@@ -260,3 +260,18 @@ ObjectType::setObjectNameWithSize(const Str& name, int size)
setObjectNameWithSize("", size, name);
}
+void ObjectType::setObject(ObjectType *)
+{
+ m_call_id = 0;
+}
+
+void ObjectType::setObject(const Null&)
+{
+ m_call_id = 1;
+}
+
+int ObjectType::callId() const
+{
+ return m_call_id;
+}
+