Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2006, 5:14:44 PM (18 years ago)
Author:
bensch
Message:

orxonox/std: less char*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/shell/shell_command_class.cc

    r7216 r7219  
    130130 * @returns the CommandClass if found, NULL otherwise
    131131 */
    132 const ShellCommandClass* ShellCommandClass::isRegistered(const char* className)
     132const ShellCommandClass* ShellCommandClass::isRegistered(const std::string& className)
    133133{
    134134  if (ShellCommandClass::commandClassList == NULL)
     
    203203          /*          for (unsigned int i = 0; i< elem->paramCount; i++)
    204204            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());
    207207          PRINT(0)("\n");
    208208        }
Note: See TracChangeset for help on using the changeset viewer.