Use std::unique_ptr for ValueBase object hierarchy

This commit is contained in:
Tatsuhiro Tsujikawa 2013-07-11 21:09:51 +09:00
parent 7a57ecc5f8
commit 7c06b903f3
77 changed files with 1242 additions and 1265 deletions

View file

@ -69,7 +69,7 @@ void DHTPingMessageTest::testGetBencodedMessage()
dict.put("q", "ping");
auto aDict = Dict::g();
aDict->put("id", String::g(localNode_->getID(), DHT_ID_LENGTH));
dict.put("a", aDict);
dict.put("a", std::move(aDict));
CPPUNIT_ASSERT_EQUAL(bencode2::encode(&dict), msgbody);
}