diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-03-18 17:39:20 -0300 |
---|---|---|
committer | Lauro Neto <lauro.neto@openbossa.org> | 2010-03-22 15:57:26 -0300 |
commit | 50e58a81949c32c3154f5bd65fc68f2b3f8d7d26 (patch) | |
tree | a7f90ef52ac74a8b54db704a002c8a4ed53b70a6 /tests/libsample/collector.cpp | |
parent | d4e41a5795d74d8ad55069374c34d2dc0a4c33f6 (diff) |
Adding greedy method to Collector
This method will somehow conflict with the external
operator in libother OtherObjectType
Diffstat (limited to 'tests/libsample/collector.cpp')
-rw-r--r-- | tests/libsample/collector.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libsample/collector.cpp b/tests/libsample/collector.cpp index 36e0145f4..c33269de1 100644 --- a/tests/libsample/collector.cpp +++ b/tests/libsample/collector.cpp @@ -54,6 +54,13 @@ Collector::operator<<(signed int item) return *this; } +Collector& +Collector::operator<<(const ObjectType *obj) +{ + m_items.push_back(obj->identifier()); + return *this; +} + std::list<int> Collector::items() { |