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/modules/docking/Dock.cc

    r10821 r10916  
    327327    const DockingEffect* Dock::getEffect(unsigned int i) const
    328328    {
    329         for (const auto & elem : this->effects_)
     329        for (DockingEffect* effect : this->effects_)
    330330        {
    331331            if(i == 0)
    332                return elem;
     332               return effect;
    333333            i--;
    334334        }
     
    346346    const DockingAnimation* Dock::getAnimation(unsigned int i) const
    347347    {
    348         for (const auto & elem : this->animations_)
     348        for (DockingAnimation* animation : this->animations_)
    349349        {
    350350            if(i == 0)
    351                return elem;
     351               return animation;
    352352            i--;
    353353        }
Note: See TracChangeset for help on using the changeset viewer.