Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 28, 2009, 9:31:24 PM (15 years ago)
Author:
landauf
Message:

replaced most occurrences of setObject(o) in combination with createFunctor(f) with the more convenient createFunctor(f, o)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/gamestates/GSGraphics.cc

    r5799 r5829  
    109109
    110110        // add console command to toggle GUI
    111         FunctorMember<GSGraphics>* functor = createFunctor(&GSGraphics::toggleGUI);
    112         functor->setObject(this);
    113         this->ccToggleGUI_ = createConsoleCommand(functor, "toggleGUI");
     111        this->ccToggleGUI_ = createConsoleCommand(createFunctor(&GSGraphics::toggleGUI, this), "toggleGUI");
    114112        CommandExecutor::addConsoleCommandShortcut(this->ccToggleGUI_);
    115113
Note: See TracChangeset for help on using the changeset viewer.