DownloadEngine: Use std::unique_ptr for dnsCache_

pull/106/head
Tatsuhiro Tsujikawa 2013-07-06 18:38:18 +09:00
parent 9130dc6776
commit 3a3ac4ef9b
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ DownloadEngine::DownloadEngine(const std::shared_ptr<EventPoll>& eventPoll)
#ifdef HAVE_ARES_ADDR_NODE
asyncDNSServers_(0),
#endif // HAVE_ARES_ADDR_NODE
dnsCache_(new DNSCache()),
dnsCache_(make_unique<DNSCache>()),
option_(0)
{
unsigned char sessionId[20];

View File

@ -145,7 +145,7 @@ private:
ares_addr_node* asyncDNSServers_;
#endif // HAVE_ARES_ADDR_NODE
std::shared_ptr<DNSCache> dnsCache_;
std::unique_ptr<DNSCache> dnsCache_;
std::unique_ptr<AuthConfigFactory> authConfigFactory_;