summaryrefslogtreecommitdiffstats
path: root/tests/libsample/objecttype.h
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-03-18 17:39:20 -0300
committerLauro Neto <lauro.neto@openbossa.org>2010-03-22 15:57:26 -0300
commit50e58a81949c32c3154f5bd65fc68f2b3f8d7d26 (patch)
treea7f90ef52ac74a8b54db704a002c8a4ed53b70a6 /tests/libsample/objecttype.h
parentd4e41a5795d74d8ad55069374c34d2dc0a4c33f6 (diff)
downloadshiboken-50e58a81949c32c3154f5bd65fc68f2b3f8d7d26.tar.gz
shiboken-50e58a81949c32c3154f5bd65fc68f2b3f8d7d26.tar.xz
shiboken-50e58a81949c32c3154f5bd65fc68f2b3f8d7d26.zip
Adding greedy method to Collector
This method will somehow conflict with the external operator in libother OtherObjectType
Diffstat (limited to 'tests/libsample/objecttype.h')
-rw-r--r--tests/libsample/objecttype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h
index 3679b3b7..b606dd81 100644
--- a/tests/libsample/objecttype.h
+++ b/tests/libsample/objecttype.h
@@ -81,6 +81,8 @@ public:
Str objectName() const;
void setObjectName(const Str& name);
+ unsigned long identifier() const { return reinterpret_cast<unsigned long>(this); }
+
bool causeEvent(Event::EventType eventType);
// Returns true if the event is processed.