diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-06-23 18:54:46 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-06-23 18:54:46 +0200 |
commit | 02b9e16833acbdaa820bd3b8b64d652a41a8ff58 (patch) | |
tree | 092b9dd423c6c52812f3978770b87417abe69b9b /src/Daemon/RequestHandlers | |
parent | 37c8bed9a5f2ae9141c461202fec5baa6fa21389 (diff) | |
download | mad-02b9e16833acbdaa820bd3b8b64d652a41a8ff58.tar mad-02b9e16833acbdaa820bd3b8b64d652a41a8ff58.zip |
XmlPacket-Klasse ?berarbeitet
Diffstat (limited to 'src/Daemon/RequestHandlers')
-rw-r--r-- | src/Daemon/RequestHandlers/CommandRequestHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Daemon/RequestHandlers/CommandRequestHandler.cpp b/src/Daemon/RequestHandlers/CommandRequestHandler.cpp index ae11de5..09eedc3 100644 --- a/src/Daemon/RequestHandlers/CommandRequestHandler.cpp +++ b/src/Daemon/RequestHandlers/CommandRequestHandler.cpp @@ -28,7 +28,7 @@ void CommandRequestHandler::handleRequest(boost::shared_ptr<const Common::XmlPac // TODO Require authentication // TODO Error handling - std::string command = (*packet)["command"]; + std::string command = packet->get<const std::string&>("command"); if(command == "reboot") getApplication()->getSystemManager()->reboot(); |