From d37792b0cd112986236addbcde01ee55067c946b Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 6 May 2009 17:58:50 +0000 Subject: 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 --- cpp/src/tests/DeliveryRecordTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/tests') 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::iterator i = records.begin(); i != records.end(); i++) { - BOOST_CHECK(i->matches(++expected)); + BOOST_CHECK(i->getId() == ++expected); } } -- cgit v1.2.1