diff options
author | Tess Chu <tess@lindenlab.com> | 2007-11-20 02:53:43 +0000 |
---|---|---|
committer | Tess Chu <tess@lindenlab.com> | 2007-11-20 02:53:43 +0000 |
commit | 2f6c7606241acdf800a2c079b359e7a1db360954 (patch) | |
tree | adb6e6e34f9c3df1e2252b2f763ae20970c0e2d4 /indra/newview/llcommandhandler.cpp | |
parent | 813b140d0767146b17acf4ad2fb96fbd5a347c34 (diff) |
svn merge -r 73926:74098 svn+ssh://svn/svn/linden/branches/viewer-auth-7
Diffstat (limited to 'indra/newview/llcommandhandler.cpp')
-rw-r--r-- | indra/newview/llcommandhandler.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/newview/llcommandhandler.cpp b/indra/newview/llcommandhandler.cpp index fd3aef9afc..95a30e8903 100644 --- a/indra/newview/llcommandhandler.cpp +++ b/indra/newview/llcommandhandler.cpp @@ -46,7 +46,7 @@ class LLCommandHandlerRegistry public: static LLCommandHandlerRegistry& instance(); void add(const char* cmd, LLCommandHandler* handler); - bool dispatch(const std::string& cmd, const std::vector<std::string>& params); + bool dispatch(const std::string& cmd, const LLSD& params, const LLSD& queryMap); private: std::map<std::string, LLCommandHandler*> mMap; @@ -68,13 +68,14 @@ void LLCommandHandlerRegistry::add(const char* cmd, LLCommandHandler* handler) } bool LLCommandHandlerRegistry::dispatch(const std::string& cmd, - const std::vector<std::string>& params) + const LLSD& params, + const LLSD& queryMap) { std::map<std::string, LLCommandHandler*>::iterator it = mMap.find(cmd); if (it == mMap.end()) return false; LLCommandHandler* handler = it->second; if (!handler) return false; - return handler->handle(params); + return handler->handle(params, queryMap); } //--------------------------------------------------------------------------- @@ -97,7 +98,7 @@ LLCommandHandler::~LLCommandHandler() //--------------------------------------------------------------------------- // static -bool LLCommandDispatcher::dispatch(const std::string& cmd, const std::vector<std::string>& params) +bool LLCommandDispatcher::dispatch(const std::string& cmd, const LLSD& params, const LLSD& queryMap) { - return LLCommandHandlerRegistry::instance().dispatch(cmd, params); + return LLCommandHandlerRegistry::instance().dispatch(cmd, params, queryMap); } |