Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2010, 2:26:53 AM (15 years ago)
Author:
landauf
Message:

ConsoleCommand::getCommand should return a const pointer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.h

    r7272 r7282  
    336336                { return ConsoleCommand::getCommandMapLC(); }
    337337
    338             static inline ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false)
     338            static inline const ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false)
    339339                { return ConsoleCommand::getCommand("", name, bPrintError); }
    340             static inline ConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false)
     340            static inline const ConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false)
    341341                { return ConsoleCommand::getCommandLC("", name, bPrintError); }
    342342
    343             static ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false);
    344             static ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false);
     343            static const ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false);
     344            static const ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false);
    345345
    346346            static void destroyAll();
Note: See TracChangeset for help on using the changeset viewer.