- Timestamp:
- Apr 8, 2015, 11:15:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/command/ConsoleCommand.cc
r10348 r10352 84 84 this->executor_ = executor; 85 85 86 ConsoleCommandManager::registerCommand(group, name, this);86 this->names_.push_back(CommandName(group, name)); 87 87 } 88 88 … … 100 100 ConsoleCommand& ConsoleCommand::addShortcut() 101 101 { 102 ConsoleCommandManager::registerCommand("", this->baseName_, this);102 this->names_.push_back(CommandName("", this->baseName_)); 103 103 return *this; 104 104 } … … 109 109 ConsoleCommand& ConsoleCommand::addShortcut(const std::string& name) 110 110 { 111 ConsoleCommandManager::registerCommand("", name, this);111 this->names_.push_back(CommandName("", name)); 112 112 return *this; 113 113 } … … 118 118 ConsoleCommand& ConsoleCommand::addGroup(const std::string& group) 119 119 { 120 ConsoleCommandManager::registerCommand(group, this->baseName_, this);120 this->names_.push_back(CommandName(group, this->baseName_)); 121 121 return *this; 122 122 } … … 127 127 ConsoleCommand& ConsoleCommand::addGroup(const std::string& group, const std::string& name) 128 128 { 129 ConsoleCommandManager::registerCommand(group, name, this);129 this->names_.push_back(CommandName(group, name)); 130 130 return *this; 131 131 }
Note: See TracChangeset
for help on using the changeset viewer.