diff options
author | Alan Conway <aconway@apache.org> | 2009-05-06 17:58:50 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-05-06 17:58:50 +0000 |
commit | d37792b0cd112986236addbcde01ee55067c946b (patch) | |
tree | be815e2111c6e7dfc629e2a8bd1742dceb9f6e81 /cpp/src/tests/DeliveryRecordTest.cpp | |
parent | f4a17848cf8a9129466369eb153511dfd6879380 (diff) | |
download | qpid-python-d37792b0cd112986236addbcde01ee55067c946b.tar.gz |
DeliveryRecord optimizations.
Replace linear search with binary search.
Collapse multi-pass mark-then-erase to a signle pass.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@772384 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/DeliveryRecordTest.cpp')
-rw-r--r-- | cpp/src/tests/DeliveryRecordTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/DeliveryRecordTest.cpp b/cpp/src/tests/DeliveryRecordTest.cpp index 47c7157749..8ff7ad3584 100644 --- a/cpp/src/tests/DeliveryRecordTest.cpp +++ b/cpp/src/tests/DeliveryRecordTest.cpp @@ -53,7 +53,7 @@ QPID_AUTO_TEST_CASE(testSort) SequenceNumber expected(0); for (list<DeliveryRecord>::iterator i = records.begin(); i != records.end(); i++) { - BOOST_CHECK(i->matches(++expected)); + BOOST_CHECK(i->getId() == ++expected); } } |