Changeset 7219 in orxonox.OLD for branches/std/src/lib/shell/shell_command_class.cc
- Timestamp:
- Mar 12, 2006, 5:14:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/shell/shell_command_class.cc
r7216 r7219 130 130 * @returns the CommandClass if found, NULL otherwise 131 131 */ 132 const ShellCommandClass* ShellCommandClass::isRegistered(const char*className)132 const ShellCommandClass* ShellCommandClass::isRegistered(const std::string& className) 133 133 { 134 134 if (ShellCommandClass::commandClassList == NULL) … … 203 203 /* for (unsigned int i = 0; i< elem->paramCount; i++) 204 204 PRINT(0)("%s ", ShellCommand::paramToString(elem->parameters[i]));*/ 205 if ( (*cmdIT)->description != NULL)206 PRINT(0)("- %s", (*cmdIT)->description );205 if (!(*cmdIT)->description.empty()) 206 PRINT(0)("- %s", (*cmdIT)->description.c_str()); 207 207 PRINT(0)("\n"); 208 208 }
Note: See TracChangeset
for help on using the changeset viewer.