- Timestamp:
- Dec 5, 2015, 10:47:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/WindowEventListener.cc
r10624 r10919 45 45 /*static*/ void WindowEventListener::moveWindow() 46 46 { 47 for ( ObjectList<WindowEventListener>::iterator it = ObjectList<WindowEventListener>::begin(); it; ++it)48 it->windowMoved();47 for (WindowEventListener* listener : ObjectList<WindowEventListener>()) 48 listener->windowMoved(); 49 49 } 50 50 … … 54 54 windowWidth_s = newWidth; 55 55 windowHeight_s = newHeight; 56 for ( ObjectList<WindowEventListener>::iterator it = ObjectList<WindowEventListener>::begin(); it; ++it)57 it->windowResized(newWidth, newHeight);56 for (WindowEventListener* listener : ObjectList<WindowEventListener>()) 57 listener->windowResized(newWidth, newHeight); 58 58 } 59 59 … … 61 61 /*static*/ void WindowEventListener::changeWindowFocus(bool bFocus) 62 62 { 63 for ( ObjectList<WindowEventListener>::iterator it = ObjectList<WindowEventListener>::begin(); it; ++it)64 it->windowFocusChanged(bFocus);63 for (WindowEventListener* listener : ObjectList<WindowEventListener>()) 64 listener->windowFocusChanged(bFocus); 65 65 } 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.