summaryrefslogtreecommitdiffstats
path: root/src/Common/RequestManager.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-12-17 21:32:20 +0100
committerMatthias Schiffer <matthias@gamezock.de>2008-12-17 21:32:20 +0100
commit389960211861736ef321df82f6abcb59f6302897 (patch)
treecbf44ddc93736ad8f059b947a08c26a31d242ee7 /src/Common/RequestManager.h
parente28a9c25c143635ffe8a1f9cee1d377a69a4f923 (diff)
downloadmad-389960211861736ef321df82f6abcb59f6302897.tar
mad-389960211861736ef321df82f6abcb59f6302897.zip
Sinnlose Klassen SharedPtr und SingletonPtr entfernt
Diffstat (limited to 'src/Common/RequestManager.h')
-rw-r--r--src/Common/RequestManager.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Common/RequestManager.h b/src/Common/RequestManager.h
index 0bc8080..c2f58d2 100644
--- a/src/Common/RequestManager.h
+++ b/src/Common/RequestManager.h
@@ -20,7 +20,6 @@
#ifndef MAD_COMMON_REQUESTMANAGER_H_
#define MAD_COMMON_REQUESTMANAGER_H_
-#include "SingletonPtr.h"
#include <Net/Connection.h>
#include <map>
@@ -65,7 +64,7 @@ class RequestManager {
}
};
- static SingletonPtr<RequestManager> requestManager;
+ static RequestManager requestManager;
std::map<Net::Connection*,RequestMap*> requestMaps;
bool core;
@@ -83,13 +82,13 @@ class RequestManager {
void receiveHandler(Net::Connection *connection, const Net::Packet &packet);
+ RequestManager();
+
public:
static RequestManager* get() {
- return requestManager.get();
+ return &requestManager;
}
- RequestManager();
-
bool isCore() const {return core;}
void setCore(bool newCore) {
core = newCore;