diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/NameResolveCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/NameResolveCommand.h')
| -rw-r--r-- | src/NameResolveCommand.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/NameResolveCommand.h b/src/NameResolveCommand.h index 5353508c..bf2e9464 100644 --- a/src/NameResolveCommand.h +++ b/src/NameResolveCommand.h @@ -39,8 +39,7 @@ #include <string> #include <vector> - -#include "SharedHandle.h" +#include <memory> // TODO Make this class generic. namespace aria2 { @@ -56,7 +55,7 @@ private: DownloadEngine* e_; #ifdef ENABLE_ASYNC_DNS - SharedHandle<AsyncNameResolverMan> asyncNameResolverMan_; + std::shared_ptr<AsyncNameResolverMan> asyncNameResolverMan_; #endif // ENABLE_ASYNC_DNS #ifdef ENABLE_ASYNC_DNS @@ -64,14 +63,14 @@ private: const std::string& hostname); #endif // ENABLE_ASYNC_DNS - SharedHandle<UDPTrackerRequest> req_; + std::shared_ptr<UDPTrackerRequest> req_; void onShutdown(); void onFailure(); void onSuccess (const std::vector<std::string>& addrs, DownloadEngine* e); public: NameResolveCommand(cuid_t cuid, DownloadEngine* e, - const SharedHandle<UDPTrackerRequest>& req); + const std::shared_ptr<UDPTrackerRequest>& req); virtual ~NameResolveCommand(); |
