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/GSLevel.cc

    r5820 r5829  
    116116        {
    117117            // keybind console command
    118             FunctorMember<GSLevel>* functor1 = createFunctor(&GSLevel::keybind);
    119             functor1->setObject(this);
    120             ccKeybind_ = createConsoleCommand(functor1, "keybind");
     118            ccKeybind_ = createConsoleCommand(createFunctor(&GSLevel::keybind, this), "keybind");
    121119            CommandExecutor::addConsoleCommandShortcut(ccKeybind_);
    122             FunctorMember<GSLevel>* functor2 = createFunctor(&GSLevel::tkeybind);
    123             functor2->setObject(this);
    124             ccTkeybind_ = createConsoleCommand(functor2, "tkeybind");
     120            ccTkeybind_ = createConsoleCommand(createFunctor(&GSLevel::tkeybind, this), "tkeybind");
    125121            CommandExecutor::addConsoleCommandShortcut(ccTkeybind_);
    126122            // set our console command as callback for the key detector
Note: See TracChangeset for help on using the changeset viewer.