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/orxonox/sound/SoundManager.cc

    r10821 r10916  
    407407        if (ambient != nullptr)
    408408        {
    409             for (auto & elem : this->ambientSounds_)
    410             {
    411                 if (elem.first == ambient)
     409            for (std::pair<AmbientSound*, bool>& pair : this->ambientSounds_)
     410            {
     411                if (pair.first == ambient)
    412412                {
    413                     elem.second = true;
    414                     this->fadeOut(elem.first);
     413                    pair.second = true;
     414                    this->fadeOut(pair.first);
    415415                    return;
    416416                }
Note: See TracChangeset for help on using the changeset viewer.