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/SimpleRandomizer.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/SimpleRandomizer.h')
| -rw-r--r-- | src/SimpleRandomizer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SimpleRandomizer.h b/src/SimpleRandomizer.h index abbd2d46..63309fb0 100644 --- a/src/SimpleRandomizer.h +++ b/src/SimpleRandomizer.h @@ -37,17 +37,17 @@ #include "Randomizer.h" +#include <memory> + #ifdef __MINGW32__ # include <wincrypt.h> #endif // __MINGW32__ -#include "SharedHandle.h" - namespace aria2 { class SimpleRandomizer : public Randomizer { private: - static SharedHandle<SimpleRandomizer> randomizer_; + static std::shared_ptr<SimpleRandomizer> randomizer_; #ifdef __MINGW32__ HCRYPTPROV cryProvider_; @@ -56,7 +56,7 @@ private: SimpleRandomizer(); public: - static const SharedHandle<SimpleRandomizer>& getInstance(); + static const std::shared_ptr<SimpleRandomizer>& getInstance(); static void init(); |
