diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-14 23:16:58 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-14 23:16:58 +0200 |
commit | 082dac7a8cb39ec1b005680680c4f3e1e8ddc256 (patch) | |
tree | 1db7b02d84cdd1882e15d3a1abfd8e93925a4af6 /src/Client/CommandParser.cpp | |
parent | fd9b1506a3b3858235e91cce45805f6d54caae4f (diff) | |
download | mad-082dac7a8cb39ec1b005680680c4f3e1e8ddc256.tar mad-082dac7a8cb39ec1b005680680c4f3e1e8ddc256.zip |
Verwende statische Instanzen von ConfigManager, ConnectionManager und RequestManager (Singleton)
Diffstat (limited to 'src/Client/CommandParser.cpp')
-rw-r--r-- | src/Client/CommandParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Client/CommandParser.cpp b/src/Client/CommandParser.cpp index decb28e..9644d71 100644 --- a/src/Client/CommandParser.cpp +++ b/src/Client/CommandParser.cpp @@ -86,14 +86,14 @@ void CommandParser::helpCommand(const std::vector<std::string> &args) { void CommandParser::statusCommand(const std::vector<std::string>&) { activeRequests++; - Requests::CoreStatusRequest::send(connection, *requestManager, sigc::mem_fun(this, &CommandParser::coreStatusRequestFinished)); + Requests::CoreStatusRequest::send(connection, sigc::mem_fun(this, &CommandParser::coreStatusRequestFinished)); } void CommandParser::exitCommand(const std::vector<std::string>&) { activeRequests++; disconnect = true; - Common::Requests::DisconnectRequest::send(connection, *requestManager, sigc::mem_fun(this, &CommandParser::requestFinished)); + Common::Requests::DisconnectRequest::send(connection, sigc::mem_fun(this, &CommandParser::requestFinished)); } void CommandParser::coreStatusRequestFinished(const Net::Packets::HostStatusPacket &packet) { |