mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 21:47:37 +03:00
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
This commit is contained in:
parent
126a4bde61
commit
07d270c87e
709 changed files with 6305 additions and 6878 deletions
|
@ -27,8 +27,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION(DHTPingReplyMessageTest);
|
|||
|
||||
void DHTPingReplyMessageTest::testGetBencodedMessage()
|
||||
{
|
||||
SharedHandle<DHTNode> localNode(new DHTNode());
|
||||
SharedHandle<DHTNode> remoteNode(new DHTNode());
|
||||
std::shared_ptr<DHTNode> localNode(new DHTNode());
|
||||
std::shared_ptr<DHTNode> remoteNode(new DHTNode());
|
||||
|
||||
unsigned char tid[DHT_TRANSACTION_ID_LENGTH];
|
||||
util::generateRandomData(tid, DHT_TRANSACTION_ID_LENGTH);
|
||||
|
@ -45,7 +45,7 @@ void DHTPingReplyMessageTest::testGetBencodedMessage()
|
|||
dict.put("t", transactionID);
|
||||
dict.put("v", "A200");
|
||||
dict.put("y", "r");
|
||||
SharedHandle<Dict> rDict = Dict::g();
|
||||
std::shared_ptr<Dict> rDict = Dict::g();
|
||||
rDict->put("id", String::g(id, DHT_ID_LENGTH));
|
||||
dict.put("r", rDict);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue