Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 6, 2015, 10:00:37 PM (9 years ago)
Author:
landauf
Message:

removed unnecessary helper functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/command/ConsoleCommandIncludes.h

    r10347 r10348  
    264264/// Internal macro
    265265#define SetConsoleCommandGeneric(group, name, functor) \
    266     static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __UNIQUE_NUMBER__) = (*orxonox::createConsoleCommand(group, name, orxonox::createExecutor(functor)))
     266    static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __UNIQUE_NUMBER__) = (*new orxonox::ConsoleCommand(group, name, orxonox::createExecutor(functor)))
    267267
    268268
     
    299299/// Internal macro
    300300#define DeclareConsoleCommandGeneric(group, name, functor) \
    301     static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __UNIQUE_NUMBER__) = (*orxonox::createConsoleCommand(group, name, orxonox::createExecutor(functor), false))
     301    static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __UNIQUE_NUMBER__) = (*new orxonox::ConsoleCommand(group, name, orxonox::createExecutor(functor), false))
    302302
    303303
    304304namespace orxonox
    305305{
    306     /**
    307         @brief Creates a new ConsoleCommand.
    308         @param name The name of the command
    309         @param executor The executor of the command
    310         @param bInitialized If true, the command is ready to be executed, otherwise it has to be activated first.
    311     */
    312     inline ConsoleCommand* createConsoleCommand(const std::string& name, const ExecutorPtr& executor, bool bInitialized = true)
    313         { return new ConsoleCommand("", name, executor, bInitialized); }
    314     /**
    315         @brief Creates a new ConsoleCommand.
    316         @param group The group of the command
    317         @param name The name of the command
    318         @param executor The executor of the command
    319         @param bInitialized If true, the command is ready to be executed, otherwise it has to be activated first.
    320     */
    321     inline ConsoleCommand* createConsoleCommand(const std::string& group, const std::string& name, const ExecutorPtr& executor, bool bInitialized = true)
    322         { return new ConsoleCommand(group, name, executor, bInitialized); }
    323 
    324 
    325306    /**
    326307        @brief Returns a manipulator for a command with the given name.
Note: See TracChangeset for help on using the changeset viewer.