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/MessageDigest.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/MessageDigest.h')
| -rw-r--r-- | src/MessageDigest.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/MessageDigest.h b/src/MessageDigest.h index f5e6ca55..d9c619b8 100644 --- a/src/MessageDigest.h +++ b/src/MessageDigest.h @@ -39,8 +39,7 @@ #include <string> #include <vector> - -#include "SharedHandle.h" +#include <memory> namespace aria2 { @@ -48,7 +47,7 @@ class MessageDigestImpl; class MessageDigest { private: - SharedHandle<MessageDigestImpl> pImpl_; + std::shared_ptr<MessageDigestImpl> pImpl_; MessageDigest(); @@ -60,11 +59,11 @@ public: ~MessageDigest(); // Factory functions - static SharedHandle<MessageDigest> sha1(); + static std::shared_ptr<MessageDigest> sha1(); // Factory function which takes hashType as string. Throws // exception if hashType is not supported. - static SharedHandle<MessageDigest> create(const std::string& hashType); + static std::shared_ptr<MessageDigest> create(const std::string& hashType); // Returns true if hashType is supported. Otherwise returns false. static bool supports(const std::string& hashType); |
