summaryrefslogtreecommitdiff
path: root/src/SingletonHolder.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-20 21:42:09 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-20 21:42:09 +0900
commitf4e2c7f0603fdb0609bf163ee5ea683a44b98d69 (patch)
tree18227134780ec9417ecc7b24969f35725a377e04 /src/SingletonHolder.h
parentf16511012e28d1303e300e695b310d01b6200c2c (diff)
Added JSON-RPC over WebSocket.
Wslay library must be placed under deps/wslay.
Diffstat (limited to 'src/SingletonHolder.h')
-rw-r--r--src/SingletonHolder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SingletonHolder.h b/src/SingletonHolder.h
index e6664bd0..7f8e2d69 100644
--- a/src/SingletonHolder.h
+++ b/src/SingletonHolder.h
@@ -40,25 +40,25 @@ namespace aria2 {
template<typename T>
class SingletonHolder {
private:
- static T instance_;
+ static T* instance_;
SingletonHolder() {}
public:
~SingletonHolder() {}
- static T& instance()
+ static T* instance()
{
return instance_;
}
- static void instance(T& instance)
+ static void instance(T* instance)
{
instance_ = instance;
}
};
template<typename T>
-T SingletonHolder<T>::instance_;
+T* SingletonHolder<T>::instance_ = 0;
} // namespace aria2