Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2015, 11:23:57 PM (9 years ago)
Author:
bknecht
Message:

rewrote a couple of for loops to use C++11 notation. Also made small change in ObjectList so it can almost be used like a normal list with C++11 notation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11/src/orxonox/chat/ChatManager.cc

    r9667 r10545  
    105105
    106106        // notify all listeners
    107         for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)
    108             it->incomingChat(text, name);
     107        for (ChatListener* listener : ObjectList<ChatListener>())
     108                listener->incomingChat(text, name);
    109109    }
    110110
Note: See TracChangeset for help on using the changeset viewer.