Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:22:03 PM (9 years ago)
Author:
landauf
Message:

use actual types instead of 'auto'. only exception is for complicated template types, e.g. when iterating over a map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/input/KeyBinder.h

    r10845 r10916  
    226226    {
    227227        // execute all buffered bindings (additional parameter)
    228         for (auto & elem : paramCommandBuffer_)
     228        for (BufferedParamCommand* command : paramCommandBuffer_)
    229229        {
    230             elem->rel_ *= dt;
    231             elem->execute();
     230            command->rel_ *= dt;
     231            command->execute();
    232232        }
    233233
    234234        // always reset the relative movement of the mouse
    235         for (auto & elem : mouseAxes_)
    236             elem.relVal_ = 0.0f;
     235        for (HalfAxis& axis : mouseAxes_)
     236            axis.relVal_ = 0.0f;
    237237    }
    238238}// tolua_export
Note: See TracChangeset for help on using the changeset viewer.