summaryrefslogtreecommitdiff
path: root/src/SimpleRandomizer.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 15:49:41 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 15:49:41 +0900
commit50dcd6394c645fdd9e7fbe879f511888bfa88423 (patch)
treebc2a2ec09af84d2fa031f32eb08c283f47f0efe7 /src/SimpleRandomizer.h
parentc330ac901d653b17f28baf41b6991c3f362fd8ed (diff)
Use std::unique_ptr instead of std::shared_ptr
Diffstat (limited to 'src/SimpleRandomizer.h')
-rw-r--r--src/SimpleRandomizer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SimpleRandomizer.h b/src/SimpleRandomizer.h
index 63309fb0..457bdcb1 100644
--- a/src/SimpleRandomizer.h
+++ b/src/SimpleRandomizer.h
@@ -47,7 +47,7 @@ namespace aria2 {
class SimpleRandomizer : public Randomizer {
private:
- static std::shared_ptr<SimpleRandomizer> randomizer_;
+ static std::unique_ptr<SimpleRandomizer> randomizer_;
#ifdef __MINGW32__
HCRYPTPROV cryProvider_;
@@ -56,7 +56,7 @@ private:
SimpleRandomizer();
public:
- static const std::shared_ptr<SimpleRandomizer>& getInstance();
+ static SimpleRandomizer* getInstance();
static void init();