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/RpcMethodFactory.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/RpcMethodFactory.h')
| -rw-r--r-- | src/RpcMethodFactory.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/RpcMethodFactory.h b/src/RpcMethodFactory.h index 063502fc..5d479d56 100644 --- a/src/RpcMethodFactory.h +++ b/src/RpcMethodFactory.h @@ -39,8 +39,7 @@ #include <string> #include <map> - -#include "SharedHandle.h" +#include <memory> namespace aria2 { @@ -50,9 +49,9 @@ class RpcMethod; class RpcMethodFactory { public: - static SharedHandle<RpcMethod> create(const std::string& methodName); + static std::shared_ptr<RpcMethod> create(const std::string& methodName); private: - static std::map<std::string, SharedHandle<RpcMethod> > cache_; + static std::map<std::string, std::shared_ptr<RpcMethod> > cache_; }; } // namespace rpc |
