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/Language.cc

    r10821 r10916  
    107107    Language::~Language()
    108108    {
    109         for (auto & elem : this->languageEntries_)
    110             delete (elem.second);
     109        for (auto& mapEntry : this->languageEntries_)
     110            delete (mapEntry.second);
    111111    }
    112112
     
    319319
    320320        // Iterate through the list an write the lines into the file
    321         for (const auto & elem : this->languageEntries_)
    322         {
    323             file << elem.second->getLabel() << '=' << elem.second->getDefault() << endl;
     321        for (const auto& mapEntry : this->languageEntries_)
     322        {
     323            file << mapEntry.second->getLabel() << '=' << mapEntry.second->getDefault() << endl;
    324324        }
    325325
Note: See TracChangeset for help on using the changeset viewer.