Use std::unique_ptr for MessageDigest

This commit is contained in:
Tatsuhiro Tsujikawa 2013-07-03 01:13:13 +09:00
parent f2d85c38cc
commit 74d6d64271
30 changed files with 124 additions and 122 deletions

View file

@ -79,7 +79,7 @@ void UTMetadataDataExtensionMessageTest::testDoReceivedAction()
unsigned char infoHash[INFO_HASH_LENGTH];
message_digest::digest(infoHash, INFO_HASH_LENGTH,
MessageDigest::sha1(),
MessageDigest::sha1().get(),
metadata.data(), metadata.size());
{
auto attrs = make_unique<TorrentAttribute>();