mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
2010-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed SharedHandle::isNull(). Instead we added operator* and operator unspecified_bool_type. Removed use of WeakHandle and replaced with raw pointer.
This commit is contained in:
parent
f6f5a7e5ee
commit
93e5dbed32
181 changed files with 911 additions and 876 deletions
|
@ -62,7 +62,7 @@ public:
|
|||
memset(transactionID, 0xff, DHT_TRANSACTION_ID_LENGTH);
|
||||
memset(remoteNodeID, 0x0f, DHT_ID_LENGTH);
|
||||
routingTable.reset(new DHTRoutingTable(localNode));
|
||||
factory->setRoutingTable(routingTable);
|
||||
factory->setRoutingTable(routingTable.get());
|
||||
}
|
||||
|
||||
void tearDown() {}
|
||||
|
@ -213,7 +213,7 @@ void DHTMessageFactoryImplTest::testCreateFindNodeReplyMessage6()
|
|||
{
|
||||
factory.reset(new DHTMessageFactoryImpl(AF_INET6));
|
||||
factory->setLocalNode(localNode);
|
||||
factory->setRoutingTable(routingTable);
|
||||
factory->setRoutingTable(routingTable.get());
|
||||
try {
|
||||
Dict dict;
|
||||
dict.put("t", String::g(transactionID, DHT_TRANSACTION_ID_LENGTH));
|
||||
|
@ -364,7 +364,7 @@ void DHTMessageFactoryImplTest::testCreateGetPeersReplyMessage6()
|
|||
{
|
||||
factory.reset(new DHTMessageFactoryImpl(AF_INET6));
|
||||
factory->setLocalNode(localNode);
|
||||
factory->setRoutingTable(routingTable);
|
||||
factory->setRoutingTable(routingTable.get());
|
||||
try {
|
||||
Dict dict;
|
||||
dict.put("t", String::g(transactionID, DHT_TRANSACTION_ID_LENGTH));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue