mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 21:47:37 +03:00
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use vector instead of deque for containers which is used for mostly read-only purpose.
This commit is contained in:
parent
135f0a2a8c
commit
c342bde962
277 changed files with 1280 additions and 1232 deletions
|
@ -99,7 +99,7 @@ void DHTRoutingTableTest::testGetClosestKNodes()
|
|||
}
|
||||
{
|
||||
createID(id, 0x80, 0x10);
|
||||
std::deque<SharedHandle<DHTNode> > nodes;
|
||||
std::vector<SharedHandle<DHTNode> > nodes;
|
||||
table.getClosestKNodes(nodes, id);
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)8, nodes.size());
|
||||
for(size_t i = 0; i < nodes.size(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue