From 07d270c87e6f9184aea4ca17eb26e466712e8db2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 22 Jun 2013 01:10:38 +0900 Subject: Require -std=c++11 and use std::shared_ptr instead of SharedHandle --- src/MessageDigest.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/MessageDigest.h') 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 #include - -#include "SharedHandle.h" +#include namespace aria2 { @@ -48,7 +47,7 @@ class MessageDigestImpl; class MessageDigest { private: - SharedHandle pImpl_; + std::shared_ptr pImpl_; MessageDigest(); @@ -60,11 +59,11 @@ public: ~MessageDigest(); // Factory functions - static SharedHandle sha1(); + static std::shared_ptr sha1(); // Factory function which takes hashType as string. Throws // exception if hashType is not supported. - static SharedHandle create(const std::string& hashType); + static std::shared_ptr create(const std::string& hashType); // Returns true if hashType is supported. Otherwise returns false. static bool supports(const std::string& hashType); -- cgit