diff options
author | Oz Linden <oz@lindenlab.com> | 2015-07-14 16:01:15 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2015-07-14 16:01:15 -0400 |
commit | 67edc1edf5389ca74a114018a804c71deecdebc1 (patch) | |
tree | 47513ac026187a19d595f36c46429b58aca90289 /indra/llui/llcommandmanager.cpp | |
parent | 4aa64b99dbe6cafdccf0c25501feaef5ba3445c4 (diff) | |
parent | 02757fc98ef1c56edce9de861a61828a9776f5f1 (diff) |
merge 3.8.0-release and correct xml errors caused by reformatting
Diffstat (limited to 'indra/llui/llcommandmanager.cpp')
-rwxr-xr-x | indra/llui/llcommandmanager.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/llui/llcommandmanager.cpp b/indra/llui/llcommandmanager.cpp index 74ef8dd0c3..3e159365e5 100755 --- a/indra/llui/llcommandmanager.cpp +++ b/indra/llui/llcommandmanager.cpp @@ -131,6 +131,25 @@ LLCommand * LLCommandManager::getCommand(const LLCommandId& commandId) return command_match; } +LLCommand * LLCommandManager::getCommand(const std::string& name) +{ + LLCommand * command_match = NULL; + + CommandVector::const_iterator it = mCommands.begin(); + + while (it != mCommands.end()) + { + if ((*it)->name() == name) + { + command_match = *it; + break; + } + it++; + } + + return command_match; +} + void LLCommandManager::addCommand(LLCommand * command) { LLCommandId command_id = command->id(); |