Changeset 5641 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc
- Timestamp:
- Nov 18, 2005, 9:22:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r5640 r5641 36 36 * @param paramCount the count of parameters this command takes 37 37 */ 38 ShellCommand::ShellCommand(const char* commandName, const char* className, Executor*executor)38 ShellCommand::ShellCommand(const char* commandName, const char* className, const Executor& executor) 39 39 { 40 40 this->setClassID(CL_SHELL_COMMAND, "ShellCommand"); … … 54 54 this->defaultValue = new MultiType[paramCount]; 55 55 56 this->executor = executor ;56 this->executor = executor.clone(); 57 57 } 58 58 … … 69 69 delete this->alias; 70 70 } 71 delete this->executor; 71 72 } 72 73 … … 74 75 * registers a new ShellCommand 75 76 */ 76 ShellCommand* ShellCommand::registerCommand(const char* commandName, const char* className, Executor*executor)77 ShellCommand* ShellCommand::registerCommand(const char* commandName, const char* className, const Executor& executor) 77 78 { 78 79 if (ShellCommand::isRegistered(commandName, className, executor)) … … 132 133 * This is checked in the registerCommand-function. 133 134 */ 134 bool ShellCommand::isRegistered(const char* commandName, const char* className, Executor*executor)135 bool ShellCommand::isRegistered(const char* commandName, const char* className, const Executor& executor) 135 136 { 136 137 if (ShellCommandClass::commandClassList == NULL)
Note: See TracChangeset
for help on using the changeset viewer.