Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 8, 2015, 3:12:17 PM (9 years ago)
Author:
landauf
Message:

use range-based-for-loop instead of BOOST_FOREACH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/input/InputManager.cc

    r10768 r10778  
    3939#include <ois/OISException.h>
    4040#include <ois/OISInputManager.h>
    41 #include <boost/foreach.hpp>
    4241#include <loki/ScopeGuard.h>
    4342
     
    310309        orxout(verbose, context::input) << "InputManager: Destroying devices..." << endl;
    311310
    312         BOOST_FOREACH(InputDevice*& device, devices_)
     311        for (InputDevice*& device : devices_)
    313312        {
    314313            if (device == nullptr)
     
    387386        // Capture all the input and collect the function calls
    388387        // No event gets triggered here yet!
    389         BOOST_FOREACH(InputDevice* device, devices_)
     388        for  (InputDevice* device : devices_)
    390389            if (device != nullptr)
    391390                device->update(time);
     
    466465    void InputManager::clearBuffers()
    467466    {
    468         BOOST_FOREACH(InputDevice* device, devices_)
     467        for (InputDevice* device : devices_)
    469468            if (device != nullptr)
    470469                device->clearBuffers();
     
    476475                        << "When done, put the axex in the middle position and press enter." << endl;
    477476
    478         BOOST_FOREACH(InputDevice* device, devices_)
     477        for (InputDevice* device : devices_)
    479478            if (device != nullptr)
    480479                device->startCalibration();
     
    487486    void InputManager::stopCalibration()
    488487    {
    489         BOOST_FOREACH(InputDevice* device, devices_)
     488        for (InputDevice* device : devices_)
    490489            if (device != nullptr)
    491490                device->stopCalibration();
Note: See TracChangeset for help on using the changeset viewer.